(token, config)
| 2133 | } |
| 2134 | |
| 2135 | function getParseRegexForToken (token, config) { |
| 2136 | if (!hasOwnProp(regexes, token)) { |
| 2137 | return new RegExp(unescapeFormat(token)); |
| 2138 | } |
| 2139 | |
| 2140 | return regexes[token](config._strict, config._locale); |
| 2141 | } |
| 2142 | |
| 2143 | // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript |
| 2144 | function unescapeFormat(s) { |
no test coverage detected