Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
United client- and server-side validation of float (closes #1430) #1462
This pull request unites client-side validation of the 'float' rule with the server-side counterpart.
The problem was in failing validation when a comma was used as a decimal point and/or spaces used as thousand separators. Both are handled on the server side by stripping spaces and replacing comma with period.
referenced this pull request
Mar 21, 2014
I found out pretty questionable feature - server-side range validator can handle string values as well (all comparable types in fact), eg.
It is evident in the description of bug #1430, where you need to add rule float so the comma and thousand separators are handled and value is changed. But if you omit the float rule, server-side validator just compares the given values as they are, but the client side parses it as float (no matter if the float rule was added).