fix: improve processing of number type arguments

This commit is contained in:
Nitin Kumar 2020-07-07 20:48:29 +05:30
parent 20ba3c0780
commit a3a78fb0c0
1 changed files with 1 additions and 1 deletions

View File

@ -533,7 +533,7 @@ const parseValueForArgumentConfig = (argConfig, value) => {
if (typeof value === "number") return value;
if (typeof value === "string" && /^[+-]?\d*(\.\d*)[eE]\d+$/) {
const n = +value;
if (!isNaN(n)) return value;
if (!isNaN(n)) return n;
}
break;
case "boolean":