mirror of
https://github.com/gristlabs/grist-core.git
synced 2026-03-02 04:09:24 +00:00
(core) Fix import parsing from choking up on Python isdigit() surprises
Summary: Python isdigit() returns true for unicode characters such as "²", which fail when used as an argument to int(). Instead, be explicit about only considering characters 0-9 to be digits. Test Plan: Added a test case which produces an error without this change. Reviewers: alexmojaki Reviewed By: alexmojaki Differential Revision: https://phab.getgrist.com/D3027
This commit is contained in:
2
sandbox/grist/imports/fixtures/test_isdigit.csv
Normal file
2
sandbox/grist/imports/fixtures/test_isdigit.csv
Normal file
@@ -0,0 +1,2 @@
|
||||
PHONE,VALUE,DATE
|
||||
201-¾᠓𑄺꤈꤈꧐꤆,¹5,2018-0²-27 16:08:39 +0000
|
||||
|
Reference in New Issue
Block a user