max/min comparisons
March 19, 2008 - 9:30pm — ita
| Project: | Validation |
| Version: | 1.2.1 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Jörn Zaefferer |
| Status: | active (needs more info) |
Jump to:
Description
The max and min rules fail when comparing numbers that have commas in them, though your default validation allows numbers with commas. E.g. If I have a rule on a text input with max:9999, validation will fail if I pass in 1,000. Maybe add a .replace(/,/g,"") before the comparison?

Comments
#1
This is not trivial to fix due to the localization. 1,000 and 1.000 mean the same in different locales. Not sure yet how to fix this properly.