(token, regex, strictRegex)
| 15368 | var regexes = {}; |
| 15369 | |
| 15370 | function addRegexToken (token, regex, strictRegex) { |
| 15371 | regexes[token] = isFunction(regex) ? regex : function (isStrict, localeData) { |
| 15372 | return (isStrict && strictRegex) ? strictRegex : regex; |
| 15373 | }; |
| 15374 | } |
| 15375 | |
| 15376 | function getParseRegexForToken (token, config) { |
| 15377 | if (!hasOwnProp(regexes, token)) { |
no test coverage detected