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

Currency validator gives false negative if number of digits in integer part is not multiplier of groupSize #1122

Closed
ivodopyanov opened this issue Nov 26, 2015 · 0 comments
Milestone

Comments

@ivodopyanov
Copy link

See here: https://jsfiddle.net/zgxenf0t/
Some cases of validation check:

$ 0.00 = false
$ 9.00 = true
$ 99.00 = true
$ 999.00 = true
$ 9,999.00 = false
$ 99,999.00 = false
$ 999,999.00 = true
$ 9,999,999.00 = false
$ 99,999,999.00 = false
$ 999,999,999.00 = true
$ 9,999,999,999.00 = false
$ 99,999,999,999.00 = false
$ 999,999,999,999.00 = true

$ 1.00 = true
$ 10.00 = true
$ 100.00 = true
$ 1,000.00 = false
$ 10,000.00 = false
$ 100,000.00 = true
$ 1,000,000.00 = false
$ 10,000,000.00 = false
$ 100,000,000.00 = true
...

Numeric alias is ok

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants