@fnmain/number
Advanced tools
Comparing version 1.3.0 to 1.3.1
@@ -90,3 +90,3 @@ "use strict"; | ||
// Check for suffixes (k, m, g, t) | ||
const suffixMatch = input.match(/([kmgKMGtT万萬w亿])$/); | ||
const suffixMatch = input.match(/([kmgbt万萬w亿])$/i); | ||
if (suffixMatch) { | ||
@@ -93,0 +93,0 @@ const number = parseFloat(input.slice(0, -1)); |
{ | ||
"name": "@fnmain/number", | ||
"version": "1.3.0", | ||
"version": "1.3.1", | ||
"description": "number utils", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -112,3 +112,3 @@ type Options = { | ||
// Check for suffixes (k, m, g, t) | ||
const suffixMatch = input.match(/([kmgKMGtT万萬w亿])$/); | ||
const suffixMatch = input.match(/([kmgbt万萬w亿])$/i); | ||
if (suffixMatch) { | ||
@@ -115,0 +115,0 @@ const number = parseFloat(input.slice(0, -1)); |
Sorry, the diff of this file is not supported yet
17758