Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unformat of negative currencies using prefix #564

Open
Teddy34 opened this issue Aug 25, 2020 · 0 comments · May be fixed by #637
Open

Unformat of negative currencies using prefix #564

Teddy34 opened this issue Aug 25, 2020 · 0 comments · May be fixed by #637

Comments

@Teddy34
Copy link

Teddy34 commented Aug 25, 2020

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.

@nonaghazizadeh nonaghazizadeh linked a pull request Jan 30, 2022 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant