Skip to content

Commit

Permalink
Fixed issue about number validete
Browse files Browse the repository at this point in the history
 -Regexp pattern modified.
  • Loading branch information
hsnaydd committed Nov 10, 2013
1 parent 30d50af commit 65ae234
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion validetta-min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion validetta.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
// @from ( http://www.whatwg.org/specs/web-apps/current-work/multipage/states-of-the-type-attribute.html#e-mail-state-%28type=email%29 )
regMail = new RegExp( /^[a-zA-Z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/ ),
//RegExp for input number control method
regNumber = new RegExp( /^[\-\+]?((([0-9]{1,3})([,][0-9]{3})*)|([0-9]+))?([\.]([0-9]+))?$/ );
regNumber = new RegExp( /^[\-\+][0-9]+?$|^[0-9]+?$/ );
/**
* Form validate error messages
*/
Expand Down

0 comments on commit 65ae234

Please sign in to comment.