(token, regex, strictRegex)
| 2127 | |
| 2128 | |
| 2129 | function addRegexToken (token, regex, strictRegex) { |
| 2130 | regexes[token] = isFunction(regex) ? regex : function (isStrict) { |
| 2131 | return (isStrict && strictRegex) ? strictRegex : regex; |
| 2132 | }; |
| 2133 | } |
| 2134 | |
| 2135 | function getParseRegexForToken (token, config) { |
| 2136 | if (!hasOwnProp(regexes, token)) { |
no test coverage detected