浏览代码

add lookaround cases

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

+ 8 - 0
js/inputmask.js

@@ -481,6 +481,14 @@
                         continue;
                     }
                     switch (m.charAt(0)) {
+                        case "(?=": //lookahead
+                            break;
+                        case "(?!": //negative lookahead
+                            break;
+                        case "(?<=": //lookbehind
+                            break;
+                        case "(?<!": //negative lookbehind
+                            break;
                         case opts.escapeChar:
                             escaped = true;
                             if (regexMask) {