|
@@ -3,7 +3,7 @@
|
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
* http://github.com/RobinHerbots/jquery.inputmask
|
|
|
* Copyright (c) 2010 - 2015 Robin Herbots
|
|
* Copyright (c) 2010 - 2015 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: 3.1.63-47
|
|
|
|
|
|
|
+* Version: 3.1.63-48
|
|
|
*/
|
|
*/
|
|
|
!function(factory) {
|
|
!function(factory) {
|
|
|
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery")) : factory(jQuery);
|
|
"function" == typeof define && define.amd ? define([ "jquery" ], factory) : "object" == typeof exports ? module.exports = factory(require("jquery")) : factory(jQuery);
|
|
@@ -621,7 +621,7 @@
|
|
|
var inputValue = void 0 != nptvl ? nptvl.slice() : input._valueGet().split(""), charCodes = "", initialNdx = 0;
|
|
var inputValue = void 0 != nptvl ? nptvl.slice() : input._valueGet().split(""), charCodes = "", initialNdx = 0;
|
|
|
if (resetMaskSet(), getMaskSet().p = seekNext(-1), writeOut && input._valueSet(""),
|
|
if (resetMaskSet(), getMaskSet().p = seekNext(-1), writeOut && input._valueSet(""),
|
|
|
!strict) {
|
|
!strict) {
|
|
|
- var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp(escapeRegex(staticInput), "g"));
|
|
|
|
|
|
|
+ var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp("^" + escapeRegex(staticInput), "g"));
|
|
|
matches && matches.length > 0 && (inputValue.splice(0, matches.length * staticInput.length),
|
|
matches && matches.length > 0 && (inputValue.splice(0, matches.length * staticInput.length),
|
|
|
initialNdx = seekNext(initialNdx));
|
|
initialNdx = seekNext(initialNdx));
|
|
|
}
|
|
}
|
|
@@ -1263,8 +1263,9 @@
|
|
|
$npt.data("inputmask-alias") && resolveAlias($npt.data("inputmask-alias"), $.extend(!0, {}, opts), opts);
|
|
$npt.data("inputmask-alias") && resolveAlias($npt.data("inputmask-alias"), $.extend(!0, {}, opts), opts);
|
|
|
for (var option in opts) {
|
|
for (var option in opts) {
|
|
|
var optionData = $npt.data("inputmask-" + option.toLowerCase());
|
|
var optionData = $npt.data("inputmask-" + option.toLowerCase());
|
|
|
- void 0 != optionData && ("mask" == option && 0 == optionData.indexOf("[") ? (opts[option] = optionData.replace(/[\s[\]]/g, "").split("','"),
|
|
|
|
|
- opts[option][0] = opts[option][0].replace("'", ""), opts[option][opts[option].length - 1] = opts[option][opts[option].length - 1].replace("'", "")) : opts[option] = "boolean" == typeof optionData ? optionData : optionData.toString(),
|
|
|
|
|
|
|
+ void 0 != optionData && (optionData = "boolean" == typeof optionData ? optionData : optionData.toString(),
|
|
|
|
|
+ "mask" == option && 0 == optionData.indexOf("[") ? (opts[option] = optionData.replace(/[\s[\]]/g, "").split("','"),
|
|
|
|
|
+ opts[option][0] = opts[option][0].replace("'", ""), opts[option][opts[option].length - 1] = opts[option][opts[option].length - 1].replace("'", "")) : opts[option] = optionData,
|
|
|
importedOptionsContainer && (importedOptionsContainer[option] = opts[option]));
|
|
importedOptionsContainer && (importedOptionsContainer[option] = opts[option]));
|
|
|
}
|
|
}
|
|
|
return opts;
|
|
return opts;
|