|
|
@@ -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.62-12
|
|
|
+* Version: 3.1.62-14
|
|
|
*/
|
|
|
!function(factory) {
|
|
|
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : factory(jQuery);
|
|
|
@@ -631,8 +631,8 @@
|
|
|
var pos, testPos, buffer = getBuffer(), bl = buffer.length, lvp = getLastValidPosition(), positions = {}, lvTest = getMaskSet().validPositions[lvp], ndxIntlzr = void 0 != lvTest ? lvTest.locator.slice() : void 0;
|
|
|
for (pos = lvp + 1; pos < buffer.length; pos++) testPos = getTestTemplate(pos, ndxIntlzr, pos - 1),
|
|
|
ndxIntlzr = testPos.locator.slice(), positions[pos] = $.extend(!0, {}, testPos);
|
|
|
- var lvTestAltArr = lvTest && void 0 != lvTest.alternation ? lvTest.locator[lvTest.alternation].split(",") : [];
|
|
|
- for (pos = bl - 1; pos > lvp && (testPos = positions[pos].match, (testPos.optionality || testPos.optionalQuantifier || lvTest && void 0 != lvTest.alternation && void 0 != positions[pos].locator[lvTest.alternation] && -1 != $.inArray(positions[pos].locator[lvTest.alternation].toString(), lvTestAltArr)) && buffer[pos] == getPlaceholder(pos, testPos)); pos--) bl--;
|
|
|
+ var lvTestAlt = lvTest && void 0 != lvTest.alternation ? lvTest.locator[lvTest.alternation] : void 0;
|
|
|
+ for (pos = bl - 1; pos > lvp && (testPos = positions[pos].match, (testPos.optionality || testPos.optionalQuantifier || lvTestAlt && lvTestAlt != positions[pos].locator[lvTest.alternation]) && buffer[pos] == getPlaceholder(pos, testPos)); pos--) bl--;
|
|
|
return returnDefinition ? {
|
|
|
l: bl,
|
|
|
def: positions[bl] ? positions[bl].match : void 0
|
|
|
@@ -778,9 +778,12 @@
|
|
|
if (opts.keepStatic) {
|
|
|
resetMaskSet(!0);
|
|
|
var lastAlt, validInputs = [];
|
|
|
- for (lastAlt = getLastValidPosition(); lastAlt >= 0; lastAlt--) if (getMaskSet().validPositions[lastAlt]) {
|
|
|
- if (void 0 != getMaskSet().validPositions[lastAlt].alternation) break;
|
|
|
- validInputs.push(getMaskSet().validPositions[lastAlt].input), delete getMaskSet().validPositions[lastAlt];
|
|
|
+ for (lastAlt = getLastValidPosition(); lastAlt >= 0; lastAlt--) {
|
|
|
+ var validPos = getMaskSet().validPositions[lastAlt];
|
|
|
+ if (validPos) {
|
|
|
+ if (void 0 != validPos.alternation) break;
|
|
|
+ null != validPos.match.fn && validInputs.push(validPos.input), delete getMaskSet().validPositions[lastAlt];
|
|
|
+ }
|
|
|
}
|
|
|
if (lastAlt > 0) for (;validInputs.length > 0; ) {
|
|
|
getMaskSet().p = seekNext(getLastValidPosition());
|