Comparing version 0.1.0 to 0.1.1
@@ -38,3 +38,3 @@ 'use strict'; | ||
if (typeof input === 'string' && allowFindInString && /\d/igm.test(input)) { | ||
return Number(input.replace(/\D/igm, '')); | ||
return Number(input.replace(/[^.\d]/igm, '')); | ||
} | ||
@@ -41,0 +41,0 @@ if (allowNaN) return NaN;else return 0; |
{ | ||
"name": "astype", | ||
"version": "0.1.0", | ||
"version": "0.1.1", | ||
"description": "Convert unknown type to certain type", | ||
@@ -5,0 +5,0 @@ "homepage": "", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
13363