We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
isNaN returns true for "34 1/2", "34 232" and so on.
Instead of isNaN() I have changed the function to to use a Regex object as...
isNumber: function(string) { //trim leading and trailing whitespace //string = string.toString().replace(/^\s+/,"").replace(/\s+$/,""); if( (string == null) || !/^-?[0-9]+[.]?[0-9]+$/.test(string) ) { return false; } return true; },
The text was updated successfully, but these errors were encountered:
That is very good, helped me out a lot and resolved the issue.
There are many other issues, which basically describe the same problem.
The zip codes / always quote values can all be resolved with this
Sorry, something went wrong.
No branches or pull requests
isNaN returns true for "34 1/2", "34 232" and so on.
Instead of isNaN() I have changed the function to to use a Regex object as...
isNumber: function(string) {
//trim leading and trailing whitespace
//string = string.toString().replace(/^\s+/,"").replace(/\s+$/,"");
if( (string == null) || !/^-?[0-9]+[.]?[0-9]+$/.test(string) ) {
return false;
}
return true;
},
The text was updated successfully, but these errors were encountered: