MCPcopy
hub / github.com/csev/py4e / addRegexToken

Function addRegexToken

code/gmane/Chart.bundle.js:2129–2133  ·  view source on GitHub ↗
(token, regex, strictRegex)

Source from the content-addressed store, hash-verified

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

Callers 1

Chart.bundle.jsFile · 0.85

Calls 1

isFunctionFunction · 0.70

Tested by

no test coverage detected