Repository navigation
Releases: amiryxe/easy-number-separator
Releases · amiryxe/easy-number-separator
Release list
v1.1.0
Added
maxDecimalsoption to limit decimal places (#9).submitRawoption: a hidden input with the field'snamesubmits the raw number (#7, #10).disallowPaste/disallowDropoptions (opt-in, off by default), based on #12.easyNumberSeparator()now returns{ refresh() }to re-format values set from code (#13).- Test suite using Node's built-in test runner (
node --test test/), no dependencies. - New demo page with small live examples.
Changed
- Pasted or dropped text is cleaned of invalid characters and reformatted.
- Inputs added to the page later are detected with
MutationObserver(replaces the removedDOMNodeInsertedevent) (#6, #11). - README rewritten to be shorter and clearer.
Fixed
- Using
.(or another regex special character) as separator allowed non-numeric input (#8). - Multiple inputs on one page: no leaked global variables, no duplicate listeners (#11).
Full changelog: 1.0...v1.1.0