Skip to content

Commit 9fbc20a

Browse files
committed
chore: better number regex
1 parent 41ae98e commit 9fbc20a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ const internals = {
1313
'[': ']'
1414
},
1515

16-
numberRx: /^(?:[0-9]*\.?[0-9]*){1}$/,
16+
numberRx: /^(?:[0-9]*(\.[0-9]*)?){1}$/,
1717
tokenRx: /^[\w\$\#\.\@\:\{\}]+$/,
1818

1919
symbol: Symbol('formula'),

0 commit comments

Comments
 (0)