Browse Source

fix masktemplate

Robin Herbots 12 years ago
parent
commit
85bd9bad32
1 changed files with 1 additions and 1 deletions
  1. 1 1
      js/jquery.inputmask.js

+ 1 - 1
js/jquery.inputmask.js

@@ -335,7 +335,7 @@
                     }
                     pos++;
                 } while (test["fn"] != null || (test["fn"] == null && test["def"] != ""));
-
+                maskTemplate.pop(); //drop the last one which is empty
                 return { "mask": maskTemplate, "repeat": opts.repeat, "greedy": opts.greedy };
             }
             function getActiveMaskSet() {