Skip to content

Commit

Permalink
chore: better number regex
Browse files Browse the repository at this point in the history
  • Loading branch information
Marsup committed Dec 14, 2022
1 parent 41ae98e commit 9fbc20a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const internals = {
'[': ']'
},

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

symbol: Symbol('formula'),
Expand Down

0 comments on commit 9fbc20a

Please sign in to comment.