浏览代码

fix masktemplate

Robin Herbots 12 年之前
父节点
当前提交
85bd9bad32
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      js/jquery.inputmask.js

+ 1 - 1
js/jquery.inputmask.js

@@ -335,7 +335,7 @@
                     }
                     }
                     pos++;
                     pos++;
                 } while (test["fn"] != null || (test["fn"] == null && test["def"] != ""));
                 } 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 };
                 return { "mask": maskTemplate, "repeat": opts.repeat, "greedy": opts.greedy };
             }
             }
             function getActiveMaskSet() {
             function getActiveMaskSet() {