We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a4cf371 commit 235a127Copy full SHA for 235a127
papaparse.js
@@ -1006,7 +1006,7 @@ License: MIT
1006
// One goal is to minimize the use of regular expressions...
1007
var MAX_FLOAT = Math.pow(2, 53);
1008
var MIN_FLOAT = -MAX_FLOAT;
1009
- var FLOAT = /^\s*-?(\d*\.?\d+|\d+\.?\d*)(e[-+]?\d+)?\s*$/i;
+ var FLOAT = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)(e[-+]?\d+)?\s*$/;
1010
var ISO_DATE = /(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d\.\d+([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))|(\d{4}-[01]\d-[0-3]\dT[0-2]\d:[0-5]\d([+-][0-2]\d:[0-5]\d|Z))/;
1011
var self = this;
1012
var _stepCounter = 0; // Number of times step was called (number of rows parsed)
0 commit comments