-
-
Notifications
You must be signed in to change notification settings - Fork 198
Open
Description
I just found this issue with the unformat of negative currencies that are using prefix:
numbro(-1000.234).formatCurrency() // "- $1.000 k"
numbro.unformat("- $1.000 k") // undefined <= ERROR
numbro.unformat('-$1.000 k') // -1000
numbro.setLanguage('fr-FR');
numbro(-1000.234).formatCurrency() // "-1,000 k€"
numbro.unformat('-1,000 k€') // -1000
Reproduced in the console of https://numbrojs.com.
I hope this helps, best regards.
Metadata
Metadata
Assignees
Labels
No labels