|
|
@@ -3,7 +3,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2015 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.1.63-37
|
|
|
+* Version: 3.1.63-41
|
|
|
*/
|
|
|
!function(factory) {
|
|
|
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery")) : factory(jQuery);
|
|
|
@@ -237,13 +237,14 @@
|
|
|
var j, valid = !0, vps = getMaskSet().validPositions;
|
|
|
for (i = j = pos; lvp >= i; i++) {
|
|
|
var t = positionsClone[i];
|
|
|
- if (void 0 != t) for (var posMatch = j; posMatch < getMaskLength() && (null == t.match.fn && vps[i] && (vps[i].match.optionalQuantifier === !0 || vps[i].match.optionality === !0) || null != t.match.fn); ) {
|
|
|
+ if (void 0 != t) for (var posMatch = j, prevPosMatch = -1; posMatch < getMaskLength() && (null == t.match.fn && vps[i] && (vps[i].match.optionalQuantifier === !0 || vps[i].match.optionality === !0) || null != t.match.fn); ) {
|
|
|
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 = isValid(posMatch, t.input, !0, !0) !== !1, j = posMatch;
|
|
|
break;
|
|
|
}
|
|
|
- if (valid = null == t.match.fn, !valid) break;
|
|
|
+ if (valid = null == t.match.fn, prevPosMatch == posMatch) break;
|
|
|
+ prevPosMatch = posMatch;
|
|
|
}
|
|
|
if (!valid) break;
|
|
|
}
|
|
|
@@ -466,12 +467,12 @@
|
|
|
}
|
|
|
function alternate(pos, c, strict, fromSetValid) {
|
|
|
for (var lastAlt, alternation, isValidRslt, altPos, validPsClone = $.extend(!0, {}, getMaskSet().validPositions), lAlt = getLastValidPosition(); lAlt >= 0 && (altPos = getMaskSet().validPositions[lAlt],
|
|
|
- !(altPos && void 0 != altPos.alternation && (lastAlt = lAlt, alternation = getMaskSet().validPositions[lastAlt].alternation,
|
|
|
- getTestTemplate(lastAlt).locator[altPos.alternation] = !altPos.locator[altPos.alternation]))); lAlt--) ;
|
|
|
+ !altPos || void 0 == altPos.alternation || (lastAlt = lAlt, alternation = getMaskSet().validPositions[lastAlt].alternation,
|
|
|
+ getTestTemplate(lastAlt).locator[altPos.alternation] == altPos.locator[altPos.alternation])); lAlt--) ;
|
|
|
if (void 0 != alternation) for (var decisionPos in getMaskSet().validPositions) if (altPos = getMaskSet().validPositions[decisionPos],
|
|
|
parseInt(decisionPos) > parseInt(lastAlt) && void 0 != altPos.alternation && null != altPos.match.fn) {
|
|
|
var altNdxs = getMaskSet().validPositions[lastAlt].locator[alternation].toString().split(","), decisionTaker = altPos.locator[alternation] || altNdxs[0];
|
|
|
- decisionTaker.length > 0 && (decisionTaker = decisionTaker[0]);
|
|
|
+ decisionTaker.length > 0 && (decisionTaker = decisionTaker.split(",")[0]);
|
|
|
for (var mndx = 0; mndx < altNdxs.length; mndx++) if (decisionTaker < altNdxs[mndx]) {
|
|
|
for (var possibilityPos, possibilities, dp = decisionPos - 1; dp >= 0; dp--) if (possibilityPos = getMaskSet().validPositions[dp],
|
|
|
void 0 != possibilityPos) {
|