(token, config)
| 795 | } |
| 796 | |
| 797 | function getParseRegexForToken(token, config) { |
| 798 | if (!hasOwnProp(regexes, token)) { |
| 799 | return new RegExp(unescapeFormat(token)); |
| 800 | } |
| 801 | |
| 802 | return regexes[token](config._strict, config._locale); |
| 803 | } |
| 804 | |
| 805 | // Code from http://stackoverflow.com/questions/3561493/is-there-a-regexp-escape-function-in-javascript |
| 806 | function unescapeFormat(s) { |
no test coverage detected