Permalink
Browse files

Merge branch '1.x' into 2.x

  • Loading branch information...
RobinHerbots committed Mar 20, 2013
2 parents 4931426 + 53fff1c commit 9f13d58b125bd255b472f68f2167004af0a6d15c
Binary file not shown.
@@ -2003,7 +2003,10 @@ Optional extensions on the jquery.inputmask base
},
'integer': {
regex: {
- number: function (groupSeparator, groupSize) { return new RegExp("^([\+\-]?\\d*)$"); }
+ number: function (groupSeparator, groupSize) {
+ var escapedGroupSeparator = $.inputmask.escapeRegex.call(this, groupSeparator);
+ return new RegExp("^[\+-]?(\\d+|\\d{1," + groupSize + "}((" + escapedGroupSeparator + "\\d{" + groupSize + "})?)+)$");
+ }
},
alias: "decimal"
}
Oops, something went wrong.

0 comments on commit 9f13d58

Please sign in to comment.