MCPcopy Create free account
hub / github.com/ronreiter/interactive-tutorials / wordRegexp

Function wordRegexp

static/js/codemirror/mode/vb/vb.js:4–6  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

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

Callers 1

vb.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected