浏览代码

remove console.logs

Robin Herbots 7 年之前
父节点
当前提交
5b9443fcd0
共有 3 个文件被更改,包括 4 次插入10361 次删除
  1. 2 1
      .gitignore
  2. 2 11
      js/inputmask.js
  3. 0 10349
      package-lock.json

+ 2 - 1
.gitignore

@@ -8,4 +8,5 @@ npm-debug.log
 .idea/
 *.iml
 qunit/qunit.js
-qunit/qunit.js.map
+qunit/qunit.js.map
+package-lock.json

+ 2 - 11
js/inputmask.js

@@ -1213,14 +1213,6 @@
                                             testPos = pos; //match the position after the group
                                             break; //stop quantifierloop && search for next possible match
                                         }
-                                        if (latestMatch.jit && !latestMatch.optionalQuantifier) {
-                                            offset = tokenGroup.matches.indexOf(latestMatch);
-                                            // console.log(qndx + " - " + offset);
-                                            testPos = pos; //match the position after the group
-                                            insertStop = true;
-                                            break; //stop quantifierloop && search for next possible match
-                                        }
-
                                         return true;
                                     }
                                 }
@@ -1234,8 +1226,7 @@
                     }
 
                     //the offset is set in the quantifierloop when git masking is used
-                    for (var tndx = (ndxInitializer.length > 0 ? ndxInitializer.shift() : 0); tndx < maskToken.matches.length; tndx = tndx + 1 + offset) {
-                        offset = 0; //reset offset
+                    for (var tndx = (ndxInitializer.length > 0 ? ndxInitializer.shift() : 0); tndx < maskToken.matches.length; tndx++) {
                         if (maskToken.matches[tndx].isQuantifier !== true) {
                             var match = handleMatch(maskToken.matches[tndx], [tndx].concat(loopNdx), quantifierRecurse);
                             if (match && testPos === pos) {
@@ -1642,7 +1633,7 @@
 
             //fill in best positions according the current input
             function trackbackPositions(originalPos, newPos, fillOnly) {
-                console.log("trackbackPositions");
+                // console.log("trackbackPositions");
                 var result;
                 if (originalPos === undefined) {
                     //find previous valid

文件差异内容过多而无法显示
+ 0 - 10349
package-lock.json