fig-tree-evaluator
Advanced tools
Comparing version 2.1.5 to 2.1.6
@@ -103,3 +103,4 @@ "use strict"; | ||
return Number.isNaN(Number(input)) ? input : Number(input); | ||
const numberMatch = input.match(/(-?(\d+\.\d+))|(-?((?<!\.)\.\d+))|(-?\d+)/gm); | ||
const pattern = new RegExp(/-?\d*\.?\d+/gm); | ||
const numberMatch = input.match(pattern); | ||
if (!numberMatch) | ||
@@ -106,0 +107,0 @@ return 0; |
{ | ||
"name": "fig-tree-evaluator", | ||
"version": "2.1.5", | ||
"version": "2.1.6", | ||
"description": "Module to evaluate JSON-structured expression trees", | ||
@@ -5,0 +5,0 @@ "main": "build/index.js", |
146344
2022