|
@@ -561,12 +561,11 @@
|
|
|
}
|
|
}
|
|
|
return isMatch;
|
|
return isMatch;
|
|
|
}
|
|
}
|
|
|
- var inputValue = void 0 != nptvl ? nptvl.slice() : input._valueGet().split("");
|
|
|
|
|
|
|
+ var inputValue = void 0 != nptvl ? nptvl.slice() : input._valueGet().split(""), charCodes = "", initialNdx = 0;
|
|
|
resetMaskSet(), getMaskSet().p = seekNext(-1), writeOut && input._valueSet("");
|
|
resetMaskSet(), getMaskSet().p = seekNext(-1), writeOut && input._valueSet("");
|
|
|
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, staticInput.length * matches.length);
|
|
|
|
|
- var charCodes = "", initialNdx = 0;
|
|
|
|
|
- $.each(inputValue, function(ndx, charCode) {
|
|
|
|
|
|
|
+ matches && matches.length > 0 && (inputValue.splice(0, matches.length * staticInput.length),
|
|
|
|
|
+ initialNdx = seekNext(initialNdx)), $.each(inputValue, function(ndx, charCode) {
|
|
|
var keypress = $.Event("keypress");
|
|
var keypress = $.Event("keypress");
|
|
|
keypress.which = charCode.charCodeAt(0), charCodes += charCode;
|
|
keypress.which = charCode.charCodeAt(0), charCodes += charCode;
|
|
|
var lvp = getLastValidPosition(), lvTest = getMaskSet().validPositions[lvp], nextTest = getTestTemplate(lvp + 1, lvTest ? lvTest.locator.slice() : void 0, lvp);
|
|
var lvp = getLastValidPosition(), lvTest = getMaskSet().validPositions[lvp], nextTest = getTestTemplate(lvp + 1, lvTest ? lvTest.locator.slice() : void 0, lvp);
|
|
@@ -633,8 +632,11 @@
|
|
|
function isComplete(buffer) {
|
|
function isComplete(buffer) {
|
|
|
if ($.isFunction(opts.isComplete)) return opts.isComplete.call($el, buffer, opts);
|
|
if ($.isFunction(opts.isComplete)) return opts.isComplete.call($el, buffer, opts);
|
|
|
if ("*" == opts.repeat) return void 0;
|
|
if ("*" == opts.repeat) return void 0;
|
|
|
- var complete = !1, lrp = determineLastRequiredPosition(!0), aml = seekPrevious(lrp.l), lvp = getLastValidPosition();
|
|
|
|
|
- if (lvp == aml && (void 0 == lrp.def || lrp.def.newBlockMarker || lrp.def.optionalQuantifier)) {
|
|
|
|
|
|
|
+ {
|
|
|
|
|
+ var complete = !1, lrp = determineLastRequiredPosition(!0), aml = seekPrevious(lrp.l);
|
|
|
|
|
+ getLastValidPosition();
|
|
|
|
|
+ }
|
|
|
|
|
+ if (void 0 == lrp.def || lrp.def.newBlockMarker || lrp.def.optionalQuantifier) {
|
|
|
complete = !0;
|
|
complete = !0;
|
|
|
for (var i = 0; aml >= i; i++) {
|
|
for (var i = 0; aml >= i; i++) {
|
|
|
var mask = isMask(i);
|
|
var mask = isMask(i);
|