formatter.js icon indicating copy to clipboard operation
formatter.js copied to clipboard

Optional characters

Open popko opened this issue 11 years ago • 7 comments

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.

popko avatar May 27 '14 15:05 popko

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

jaridmargolin avatar May 27 '14 22:05 jaridmargolin

Any updates on this?

micahbule avatar Jan 03 '15 16:01 micahbule

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

$12,356,789.01
$123,567.00
$123.00

bcherny avatar Jan 20 '15 20:01 bcherny

+1 It would be great.

kirylkastko avatar Feb 11 '15 05:02 kirylkastko

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

length x width x height
100x100x100
24x24x48
0x0x0

PaitoAnderson avatar Jul 14 '15 20:07 PaitoAnderson

some position about this enhancement?

andrekutianski avatar May 18 '19 19:05 andrekutianski

+1 It is very useful

lantonello avatar Oct 16 '19 04:10 lantonello