|
@@ -526,7 +526,9 @@
|
|
|
}
|
|
}
|
|
|
function checkVal(input, writeOut, strict, nptvl) {
|
|
function checkVal(input, writeOut, strict, nptvl) {
|
|
|
var inputValue = void 0 != nptvl ? nptvl.slice() : input._valueGet().split("");
|
|
var inputValue = void 0 != nptvl ? nptvl.slice() : input._valueGet().split("");
|
|
|
- if (resetMaskSet(), writeOut && input._valueSet(""), $.each(inputValue, function(ndx, charCode) {
|
|
|
|
|
|
|
+ resetMaskSet(), writeOut && input._valueSet("");
|
|
|
|
|
+ var staticInput = getBufferTemplate().slice(0, seekNext(-1)).join(""), matches = inputValue.join("").match(new RegExp(escapeRegex(staticInput), "g"));
|
|
|
|
|
+ if (matches && matches.length > 0 && inputValue.splice(0, staticInput.length), $.each(inputValue, function(ndx, charCode) {
|
|
|
var lvp = getLastValidPosition();
|
|
var lvp = getLastValidPosition();
|
|
|
-1 == $.inArray(charCode, getBufferTemplate().slice(lvp + 1, getMaskSet().p)) || strict ? (keypressEvent.call(input, void 0, !0, charCode.charCodeAt(0), !1, strict, strict ? ndx : getMaskSet().p),
|
|
-1 == $.inArray(charCode, getBufferTemplate().slice(lvp + 1, getMaskSet().p)) || strict ? (keypressEvent.call(input, void 0, !0, charCode.charCodeAt(0), !1, strict, strict ? ndx : getMaskSet().p),
|
|
|
strict = strict || ndx > 0 && ndx > getMaskSet().p) : keypressEvent.call(input, void 0, !0, charCode.charCodeAt(0), !1, !0, lvp + 1);
|
|
strict = strict || ndx > 0 && ndx > getMaskSet().p) : keypressEvent.call(input, void 0, !0, charCode.charCodeAt(0), !1, !0, lvp + 1);
|