Closed nathanpower closed 5 years ago
Note the first example in the readme is now wrong.
format("#,##0.####", 1234567.89); // output: "1,234,567.89"
format("$ #,###.00", -1234567.89); // output: "$ -1,234,567.89"
Please consider un-publishing and republishing as major
Sorry! I totally forgot it was a breaking change.
I've unpublished for now. I'll add it back with a minor update and a new option to turn that behavior on & off.
Hi, have you considered re-plublishing it ? I could use ts support !
Thanx
@Mottie Could you please publish the 2.0.0
release ? 🎉
Negative and Positive Signs are a game-changing feature !
Done... v2.0.0 has been released. I renamed the ignoreSign
option to enforceMaskSign
which is now false
by default. Examples added to the readme.
Hmm, wow... even though all the tests pass, the readme examples and behavior with the enforceMaskSign
is not what I am expecting.
Haha, nevermind... I forgot to update the readme examples.
The new handling of negative numbers seems like it should have been considered a breaking change.