Skip to content

Commit

Permalink
Include lowercase and uppercase om float regex (#863)
Browse files Browse the repository at this point in the history
Co-authored-by: Connor Smith <connor.smith@horiba-mira.com>
  • Loading branch information
ConnorSmith-pf and ConnorSmith14 committed Mar 22, 2021
1 parent 96022a6 commit 95e4de8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion papaparse.js
Expand Up @@ -1007,7 +1007,7 @@ License: MIT
// One goal is to minimize the use of regular expressions...
var MAX_FLOAT = Math.pow(2, 53);
var MIN_FLOAT = -MAX_FLOAT;
var FLOAT = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)(e[-+]?\d+)?\s*$/;
var FLOAT = /^\s*-?(\d+\.?|\.\d+|\d+\.\d+)([eE][-+]?\d+)?\s*$/;
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))/;
var self = this;
var _stepCounter = 0; // Number of times step was called (number of rows parsed)
Expand Down

0 comments on commit 95e4de8

Please sign in to comment.