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.
2 parents 184bb28 + 631b2e6 commit e27b3d3Copy full SHA for e27b3d3
src/util/common.js
@@ -45,7 +45,7 @@ const Common = {
45
if (Array.isArray(str)) {
46
return str.map((x) => Common.toNumber(x));
47
}
48
- if (!_isNaN(parseInt(str, 10))) {
+ if (!_isNaN(parseInt(str, 10)) && !_isNaN(_toNumber(str))) {
49
return _toNumber(str);
50
51
return str;
0 commit comments