numbro
numbro copied to clipboard
Percentages with parentheses for negatives are incorrect
numbro(-0.5).format({output: 'percent', negative: 'parenthesis'})
Expected: (50%)
Actual: (50)%
I suspect parenthesis for negative is the last thing that should be applied?
Similar issue for currency - the currency should be inside the parentheses, rather than outside
thanks!
@all-contributors please add @lexanth for bug