MCPcopy Create free account
hub / github.com/browserify/static-module / keywordRegexp

Function keywordRegexp

bench/input.js:440–442  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

438var plugins = {};
439
440function keywordRegexp(words) {
441 return new RegExp("^(?:" + words.replace(/ /g, "|") + ")$")
442}
443
444var Parser = function Parser(options, input, startPos) {
445 this.options = options = getOptions(options);

Callers 1

ParserFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…