MCPcopy Index your code
hub / github.com/csev/py4e / getParseRegexForToken

Function getParseRegexForToken

code/gmane/Chart.bundle.js:2135–2141  ·  view source on GitHub ↗
(token, config)

Source from the content-addressed store, hash-verified

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) {

Callers 1

Calls 2

hasOwnPropFunction · 0.85
unescapeFormatFunction · 0.85

Tested by

no test coverage detected