|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2018 Robin Herbots
|
|
* Copyright (c) 2010 - 2018 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: 4.0.0-beta.31
|
|
|
|
|
|
|
+* Version: 4.0.0-beta.32
|
|
|
*/
|
|
*/
|
|
|
|
|
|
|
|
!function(factory) {
|
|
!function(factory) {
|
|
@@ -1436,7 +1436,7 @@
|
|
|
if (insertTestDefinition(currentOpeningToken = openenings[openenings.length - 1], m),
|
|
if (insertTestDefinition(currentOpeningToken = openenings[openenings.length - 1], m),
|
|
|
currentOpeningToken.isAlternator) {
|
|
currentOpeningToken.isAlternator) {
|
|
|
alternator = openenings.pop();
|
|
alternator = openenings.pop();
|
|
|
- for (var mndx = 0; mndx < alternator.matches.length; mndx++) alternator.matches[mndx].isGroup = !1;
|
|
|
|
|
|
|
+ for (var mndx = 0; mndx < alternator.matches.length; mndx++) alternator.matches[mndx].isGroup && (alternator.matches[mndx].isGroup = !1);
|
|
|
openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1]).matches.push(alternator) : currentToken.matches.push(alternator);
|
|
openenings.length > 0 ? (currentOpeningToken = openenings[openenings.length - 1]).matches.push(alternator) : currentToken.matches.push(alternator);
|
|
|
}
|
|
}
|
|
|
} else insertTestDefinition(currentToken, m);
|
|
} else insertTestDefinition(currentToken, m);
|
|
@@ -1489,7 +1489,11 @@
|
|
|
jit: mqj[1]
|
|
jit: mqj[1]
|
|
|
};
|
|
};
|
|
|
var matches = openenings.length > 0 ? openenings[openenings.length - 1].matches : currentToken.matches;
|
|
var matches = openenings.length > 0 ? openenings[openenings.length - 1].matches : currentToken.matches;
|
|
|
- (match = matches.pop()).isAlternator && (matches.push(match), match = (matches = match.matches).pop()),
|
|
|
|
|
|
|
+ if ((match = matches.pop()).isAlternator) {
|
|
|
|
|
+ matches.push(match), matches = match.matches;
|
|
|
|
|
+ var groupToken = new MaskToken(!0), tmpMatch = matches.pop();
|
|
|
|
|
+ matches.push(groupToken), matches = groupToken.matches, match = tmpMatch;
|
|
|
|
|
+ }
|
|
|
match.isGroup || (regexMask && null === match.fn && "." === match.def && (match.fn = new RegExp(match.def, opts.casing ? "i" : "")),
|
|
match.isGroup || (regexMask && null === match.fn && "." === match.def && (match.fn = new RegExp(match.def, opts.casing ? "i" : "")),
|
|
|
match = groupify([ match ])), matches.push(match), matches.push(quantifier);
|
|
match = groupify([ match ])), matches.push(match), matches.push(quantifier);
|
|
|
break;
|
|
break;
|
|
@@ -1537,7 +1541,7 @@
|
|
|
}
|
|
}
|
|
|
var st;
|
|
var st;
|
|
|
return maskToken;
|
|
return maskToken;
|
|
|
- }(maskTokens[0]), console.log(JSON.stringify(maskTokens)), maskTokens;
|
|
|
|
|
|
|
+ }(maskTokens[0]), maskTokens;
|
|
|
}
|
|
}
|
|
|
}, Inputmask.extendDefaults = function(options) {
|
|
}, Inputmask.extendDefaults = function(options) {
|
|
|
$.extend(!0, Inputmask.prototype.defaults, options);
|
|
$.extend(!0, Inputmask.prototype.defaults, options);
|