|
@@ -3,7 +3,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2015 Robin Herbots
|
|
* Copyright (c) 2010 - 2015 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.1.62-19
|
|
|
|
|
|
|
+* Version: 3.1.62-26
|
|
|
*/
|
|
*/
|
|
|
!function(factory) {
|
|
!function(factory) {
|
|
|
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory(jQuery);
|
|
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory(jQuery);
|
|
@@ -234,13 +234,16 @@
|
|
|
var i, positionsClone = $.extend(!0, {}, getMaskSet().validPositions), lvp = getLastValidPosition();
|
|
var i, positionsClone = $.extend(!0, {}, getMaskSet().validPositions), lvp = getLastValidPosition();
|
|
|
for (i = pos; lvp >= i; i++) delete getMaskSet().validPositions[i];
|
|
for (i = pos; lvp >= i; i++) delete getMaskSet().validPositions[i];
|
|
|
getMaskSet().validPositions[pos] = validTest;
|
|
getMaskSet().validPositions[pos] = validTest;
|
|
|
- var j, valid = !0;
|
|
|
|
|
- for (i = pos; lvp >= i; i++) {
|
|
|
|
|
|
|
+ var j, valid = !0, vps = getMaskSet().validPositions;
|
|
|
|
|
+ for (i = j = pos; lvp >= i; i++) {
|
|
|
var t = positionsClone[i];
|
|
var t = positionsClone[i];
|
|
|
- if (void 0 != t) {
|
|
|
|
|
- var vps = getMaskSet().validPositions;
|
|
|
|
|
- j = !opts.keepStatic && vps[i] && (void 0 != vps[i + 1] && getTests(i + 1, vps[i].locator.slice(), i).length > 1 || void 0 != vps[i].alternation) ? i + 1 : seekNext(i),
|
|
|
|
|
- valid = positionCanMatchDefinition(j, t.match.def) ? valid && isValid(j, t.input, !0, !0) !== !1 : null == t.match.fn;
|
|
|
|
|
|
|
+ if (void 0 != t) for (var posMatch = j; posMatch < getMaskLength(); ) {
|
|
|
|
|
+ if (null == t.match.fn || !opts.keepStatic && vps[i] && (void 0 != vps[i + 1] && getTests(i + 1, vps[i].locator.slice(), i).length > 1 || void 0 != vps[i].alternation) ? posMatch++ : posMatch = seekNext(j),
|
|
|
|
|
+ positionCanMatchDefinition(posMatch, t.match.def)) {
|
|
|
|
|
+ valid = valid && isValid(posMatch, t.input, !0, !0) !== !1, j = posMatch;
|
|
|
|
|
+ break;
|
|
|
|
|
+ }
|
|
|
|
|
+ valid = null == t.match.fn;
|
|
|
}
|
|
}
|
|
|
if (!valid) break;
|
|
if (!valid) break;
|
|
|
}
|
|
}
|
|
@@ -299,7 +302,8 @@
|
|
|
var optionalToken = match;
|
|
var optionalToken = match;
|
|
|
if (match = ResolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse)) {
|
|
if (match = ResolveTestFromToken(match, ndxInitializer, loopNdx, quantifierRecurse)) {
|
|
|
var latestMatch = matches[matches.length - 1].match, isFirstMatch = 0 == $.inArray(latestMatch, optionalToken.matches);
|
|
var latestMatch = matches[matches.length - 1].match, isFirstMatch = 0 == $.inArray(latestMatch, optionalToken.matches);
|
|
|
- isFirstMatch && (insertStop = !0), testPos = pos;
|
|
|
|
|
|
|
+ if (!isFirstMatch) return !0;
|
|
|
|
|
+ insertStop = !0, testPos = pos;
|
|
|
}
|
|
}
|
|
|
} else if (match.isAlternator) {
|
|
} else if (match.isAlternator) {
|
|
|
var maltMatches, alternateToken = match, malternateMatches = [], currentMatches = matches.slice(), loopNdxCnt = loopNdx.length, altIndex = ndxInitializer.length > 0 ? ndxInitializer.shift() : -1;
|
|
var maltMatches, alternateToken = match, malternateMatches = [], currentMatches = matches.slice(), loopNdxCnt = loopNdx.length, altIndex = ndxInitializer.length > 0 ? ndxInitializer.shift() : -1;
|