From 95e4de8cf5772afcc533a6c5c88a392e112dfafa Mon Sep 17 00:00:00 2001 From: Connor Smith <80120827+ConnorSmith-pf@users.noreply.github.com> Date: Mon, 22 Mar 2021 16:41:02 +0000 Subject: [PATCH] Include lowercase and uppercase om float regex (#863) Co-authored-by: Connor Smith --- papaparse.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/papaparse.js b/papaparse.js index 1a25118..26db15c 100755 --- a/papaparse.js +++ b/papaparse.js @@ -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)