|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/Inputmask
|
|
|
* Copyright (c) 2010 - 2019 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 4.0.7
|
|
|
+* Version: 4.0.8
|
|
|
*/
|
|
|
|
|
|
(function(factory) {
|
|
|
@@ -118,7 +118,7 @@
|
|
|
function importAttributeOptions(npt, opts, userOptions, dataAttribute) {
|
|
|
if (opts.importDataAttributes === true) {
|
|
|
var attrOptions = npt.getAttribute(dataAttribute), option, dataoptions, optionData, p;
|
|
|
- function importOption(option, optionData) {
|
|
|
+ var importOption = function(option, optionData) {
|
|
|
optionData = optionData !== undefined ? optionData : npt.getAttribute(dataAttribute + "-" + option);
|
|
|
if (optionData !== null) {
|
|
|
if (typeof optionData === "string") {
|
|
|
@@ -126,7 +126,7 @@
|
|
|
}
|
|
|
userOptions[option] = optionData;
|
|
|
}
|
|
|
- }
|
|
|
+ };
|
|
|
if (attrOptions && attrOptions !== "") {
|
|
|
attrOptions = attrOptions.replace(/'/g, '"');
|
|
|
dataoptions = JSON.parse("{" + attrOptions + "}");
|
|
|
@@ -508,13 +508,13 @@
|
|
|
break;
|
|
|
|
|
|
case opts.alternatormarker:
|
|
|
- function groupQuantifier(matches) {
|
|
|
+ var groupQuantifier = function(matches) {
|
|
|
var lastMatch = matches.pop();
|
|
|
if (lastMatch.isQuantifier) {
|
|
|
lastMatch = groupify([ matches.pop(), lastMatch ]);
|
|
|
}
|
|
|
return lastMatch;
|
|
|
- }
|
|
|
+ };
|
|
|
if (openenings.length > 0) {
|
|
|
currentOpeningToken = openenings[openenings.length - 1];
|
|
|
var subToken = currentOpeningToken.matches[currentOpeningToken.matches.length - 1];
|
|
|
@@ -731,7 +731,7 @@
|
|
|
maskset = maskset || this.maskset;
|
|
|
opts = opts || this.opts;
|
|
|
var inputmask = this, el = this.el, isRTL = this.isRTL, undoValue, $el, skipKeyPressEvent = false, skipInputEvent = false, ignorable = false, maxLength, mouseEnter = false, colorMask, originalPlaceholder;
|
|
|
- function getMaskTemplate(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
|
|
|
+ var getMaskTemplate = function(baseOnInput, minimalPos, includeMode, noJit, clearOptionalTail) {
|
|
|
var greedy = opts.greedy;
|
|
|
if (clearOptionalTail) opts.greedy = false;
|
|
|
minimalPos = minimalPos || 0;
|
|
|
@@ -764,7 +764,7 @@
|
|
|
if (includeMode !== false || getMaskSet().maskLength === undefined) getMaskSet().maskLength = pos - 1;
|
|
|
opts.greedy = greedy;
|
|
|
return maskTemplate;
|
|
|
- }
|
|
|
+ };
|
|
|
function getMaskSet() {
|
|
|
return maskset;
|
|
|
}
|