Browse Source

gettests quantifier fix

Robin Herbots 11 years ago
parent
commit
73b9d268b8
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/jquery.inputmask.js

+ 1 - 1
js/jquery.inputmask.js

@@ -366,7 +366,7 @@
                         break;
                     }
                 }
-                if (matches.length == 0 || insertStop)
+                if (matches.length == 0 || (insertStop && matches.length < 2))
                     matches.push({ "match": { fn: null, cardinality: 0, optionality: true, casing: null, def: "" }, "locator": [] });
 
                 getMaskSet()['tests'][pos] = matches;