jaridmargolin / formatter.js

Format html inputs to match a specified pattern
http://firstopinion.github.io/formatter.js
2.48k stars 235 forks source link

Optional characters #51

Open popko opened 10 years ago

popko commented 10 years ago

Is there any option to use repetition, e.g. {{99?}} or {{9{1,2}}}? This would allow to specify variable format like optional characters that may or may not be specified.

jaridmargolin commented 10 years ago

Currently not implemented. Sounds useful. Would be glad to review a PR.

micahbule commented 9 years ago

Any updates on this?

bcherny commented 9 years ago

+1 this would enable the currency use case. ie.

$12,356,789.01
$123,567.00
$123.00
kirylkastko commented 9 years ago

+1 It would be great.

PaitoAnderson commented 9 years ago

+1 - Would work for my use case of entering dimensions too.

length x width x height
100x100x100
24x24x48
0x0x0
andrekutianski commented 5 years ago

some position about this enhancement?

lantonello commented 5 years ago

+1 It is very useful