|
|
@@ -3,7 +3,7 @@
|
|
|
* https://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2017 Robin Herbots
|
|
|
* Licensed under the MIT license (http://www.opensource.org/licenses/mit-license.php)
|
|
|
-* Version: 3.3.5-33
|
|
|
+* Version: 3.3.5-34
|
|
|
*/
|
|
|
!function($) {
|
|
|
function Inputmask(alias, options, internal) {
|
|
|
@@ -834,13 +834,14 @@
|
|
|
} else isSupported = "partial";
|
|
|
return isSupported !== !1 && patchValueProperty(input), isSupported;
|
|
|
}
|
|
|
+ EventRuler.off(el);
|
|
|
var isSupported = isElementTypeSupported(elem, opts);
|
|
|
if (isSupported !== !1 && (el = elem, $el = $(el), ("rtl" === el.dir || opts.rightAlign) && (el.style.textAlign = "right"),
|
|
|
("rtl" === el.dir || opts.numericInput) && (el.dir = "ltr", el.removeAttribute("dir"),
|
|
|
el.inputmask.isRTL = !0, isRTL = !0), opts.colorMask === !0 && initializeColorMask(el),
|
|
|
android && (el.hasOwnProperty("inputmode") && (el.inputmode = opts.inputmode, el.setAttribute("inputmode", opts.inputmode)),
|
|
|
"rtfm" === opts.androidHack && (opts.colorMask !== !0 && initializeColorMask(el),
|
|
|
- el.type = "password")), EventRuler.off(el), isSupported === !0 && (EventRuler.on(el, "submit", EventHandlers.submitEvent),
|
|
|
+ el.type = "password")), isSupported === !0 && (EventRuler.on(el, "submit", EventHandlers.submitEvent),
|
|
|
EventRuler.on(el, "reset", EventHandlers.resetEvent), EventRuler.on(el, "mouseenter", EventHandlers.mouseenterEvent),
|
|
|
EventRuler.on(el, "blur", EventHandlers.blurEvent), EventRuler.on(el, "focus", EventHandlers.focusEvent),
|
|
|
EventRuler.on(el, "mouseleave", EventHandlers.mouseleaveEvent), opts.colorMask !== !0 && EventRuler.on(el, "click", EventHandlers.clickEvent),
|
|
|
@@ -1606,7 +1607,7 @@
|
|
|
});
|
|
|
}
|
|
|
}), $.fn.inputmask;
|
|
|
-}(jQuery, Inputmask), function($, Inputmask) {}(jQuery, Inputmask), function($, Inputmask) {
|
|
|
+}(jQuery, Inputmask), function($, Inputmask) {
|
|
|
function isLeapYear(year) {
|
|
|
return isNaN(year) || 29 === new Date(year, 2, 0).getDate();
|
|
|
}
|
|
|
@@ -2612,7 +2613,7 @@
|
|
|
tokenizer: /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g,
|
|
|
quantifierFilter: /[0-9]+[^,]/,
|
|
|
isComplete: function(buffer, opts) {
|
|
|
- return new RegExp(opts.regex).test(buffer.join(""));
|
|
|
+ return new RegExp(opts.regex, opts.casing ? "i" : "").test(buffer.join(""));
|
|
|
},
|
|
|
definitions: {
|
|
|
r: {
|
|
|
@@ -2679,12 +2680,12 @@
|
|
|
if ("[" == matchToken.charAt(0)) {
|
|
|
testExp = regexPart, testExp += matchToken;
|
|
|
for (var j = 0; j < openGroupCount; j++) testExp += ")";
|
|
|
- var exp = new RegExp("^(" + testExp + ")$");
|
|
|
+ var exp = new RegExp("^(" + testExp + ")$", opts.casing ? "i" : "");
|
|
|
isvalid = exp.test(bufferStr);
|
|
|
} else for (var l = 0, tl = matchToken.length; l < tl; l++) if ("\\" !== matchToken.charAt(l)) {
|
|
|
testExp = regexPart, testExp += matchToken.substr(0, l + 1), testExp = testExp.replace(/\|$/, "");
|
|
|
for (var j = 0; j < openGroupCount; j++) testExp += ")";
|
|
|
- var exp = new RegExp("^(" + testExp + ")$");
|
|
|
+ var exp = new RegExp("^(" + testExp + ")$", opts.casing ? "i" : "");
|
|
|
if (isvalid = exp.test(bufferStr)) break;
|
|
|
}
|
|
|
regexPart += matchToken;
|