Browse Source

add lookaround cases

Robin Herbots 7 years ago
parent
commit
0c54a9fc25
1 changed files with 8 additions and 0 deletions
  1. 8 0
      js/inputmask.js

+ 8 - 0
js/inputmask.js

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