MCPcopy Create free account
hub / github.com/nwutils/nw-sample-apps / wordRegexp

Function wordRegexp

mini-code-edit/cm/mode/coffeescript/coffeescript.js:8–10  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

6 var ERRORCLASS = 'error';
7
8 function wordRegexp(words) {
9 return new RegExp("^((" + words.join(")|(") + "))\\b");
10 }
11
12 var singleOperators = new RegExp("^[\\+\\-\\*/%&|\\^~<>!\?]");
13 var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]');

Callers 1

coffeescript.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected