EricSmekens / jsep

JavaScript Expression Parser
http://ericsmekens.github.io/jsep/
MIT License
827 stars 133 forks source link

New `numbers` plugin to expand allowable number formats #207

Closed 6utt3rfly closed 2 years ago

6utt3rfly commented 2 years ago

supports:

Also adds ignoring of underscore _ characters, which means basically copying/replacing the core gobbleNumericLiteral method. Didn't add BigInt support because I felt that it would be better as a separate plugin, so it can also add operators, and for not limiting this plugin's compatibility since BigInt is newer 🤷🏻‍♀️

fixes #206

github-actions[bot] commented 2 years ago

:tada: This PR is included in version @jsep-plugin/numbers-v1.0.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: