| 388 | } |
| 389 | function reverseTokens(maskToken) { |
| 390 | function reverseStatic(st) { |
| 391 | if (st === opts.optionalmarker[0]) st = opts.optionalmarker[1]; else if (st === opts.optionalmarker[1]) st = opts.optionalmarker[0]; else if (st === opts.groupmarker[0]) st = opts.groupmarker[1]; else if (st === opts.groupmarker[1]) st = opts.groupmarker[0]; |
| 392 | return st; |
| 393 | } |
| 394 | maskToken.matches = maskToken.matches.reverse(); |
| 395 | for (var match in maskToken.matches) { |
| 396 | if (maskToken.matches.hasOwnProperty(match)) { |