parse string bug #875

Closed
opened 2017-11-03 20:41:52 +00:00 by sh977218 · 1 comment
sh977218 commented 2017-11-03 20:41:52 +00:00 (Migrated from github.com)

If the cell contains this pattern:
1;2;3 or 1;2;5 or 12;14;14
the parse will think it's a date and try to give you a number in output
37623.041666666664.

If the cell contains this pattern: 1;2;3 or 1;2;5 or 12;14;14 the parse will think it's a date and try to give you a number in output 37623.041666666664.
sh977218 commented 2017-11-06 16:03:15 +00:00 (Migrated from github.com)

this can be easy reproduced by:
create test.csv file like below.
`string value

12;12;12
12;13;12
12;12;13
1;0;999
1;2;3;4;5;6;7;444;8;9;10;11;12;13;14;15;999
`
and drop file over here: http://oss.sheetjs.com/

the output will be this:
`
string value

12/12/12

12/13/12

12/12/13

1;0;999

1;2;3;4;5;6;7;444;8;9;10;11;12;13;14;15;999
`

this can be easy reproduced by: create test.csv file like below. `string value 12;12;12 12;13;12 12;12;13 1;0;999 1;2;3;4;5;6;7;444;8;9;10;11;12;13;14;15;999 ` and drop file over here: http://oss.sheetjs.com/ the output will be this: ` string value 12/12/12 12/13/12 12/12/13 1;0;999 1;2;3;4;5;6;7;444;8;9;10;11;12;13;14;15;999 `
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: sheetjs/sheetjs#875
No description provided.