(isGroup, isOptional, isQuantifier, isAlternator)
| 261 | analyseMask: function(mask, regexMask, opts) { |
| 262 | var tokenizer = /(?:[?*+]|\{[0-9\+\*]+(?:,[0-9\+\*]*)?(?:\|[0-9\+\*]*)?\})|[^.?*+^${[]()|\\]+|./g, regexTokenizer = /\[\^?]?(?:[^\\\]]+|\\[\S\s]?)*]?|\\(?:0(?:[0-3][0-7]{0,2}|[4-7][0-7]?)?|[1-9][0-9]*|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|c[A-Za-z]|[\S\s]?)|\((?:\?[:=!]?)?|(?:[?*+]|\{[0-9]+(?:,[0-9]*)?\})\??|[^.?*+^${[()|\\]+|./g, escaped = false, currentToken = new MaskToken(), match, m, openenings = [], maskTokens = [], openingToken, currentOpeningToken, alternator, lastMatch, groupToken; |
| 263 | function MaskToken(isGroup, isOptional, isQuantifier, isAlternator) { |
| 264 | this.matches = []; |
| 265 | this.openGroup = isGroup || false; |
| 266 | this.alternatorGroup = false; |
| 267 | this.isGroup = isGroup || false; |
| 268 | this.isOptional = isOptional || false; |
| 269 | this.isQuantifier = isQuantifier || false; |
| 270 | this.isAlternator = isAlternator || false; |
| 271 | this.quantifier = { |
| 272 | min: 1, |
| 273 | max: 1 |
| 274 | }; |
| 275 | } |
| 276 | function insertTestDefinition(mtoken, element, position) { |
| 277 | position = position !== undefined ? position : mtoken.matches.length; |
| 278 | var prevMatch = mtoken.matches[position - 1]; |
nothing calls this directly
no outgoing calls
no test coverage detected