fix price and modular
This commit is contained in:
+1
-1
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "strnum",
|
||||
"version": "2.1.1",
|
||||
"version": "2.1.2",
|
||||
"description": "Parse String to Number based on configuration",
|
||||
"type": "module",
|
||||
"main": "strnum.js",
|
||||
|
||||
+1
-1
@@ -25,7 +25,7 @@ export default function toNumber(str, options = {}){
|
||||
return parse_int(trimmedStr, 16);
|
||||
// }else if (options.oct && octRegex.test(str)) {
|
||||
// return Number.parseInt(val, 8);
|
||||
}else if (trimmedStr.search(/.+[eE].+/)!== -1) { //eNotation
|
||||
}else if (trimmedStr.includes('e') || trimmedStr.includes('E')) { //eNotation
|
||||
return resolveEnotation(str,trimmedStr,options);
|
||||
// }else if (options.parseBin && binRegex.test(str)) {
|
||||
// return Number.parseInt(val, 2);
|
||||
|
||||
Reference in New Issue
Block a user