MCPcopy Create free account
hub / github.com/TruthHun/BookStack / wordRegexp

Function wordRegexp

static/editor.md/lib/codemirror/mode/vb/vb.js:17–19  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

15 var ERRORCLASS = 'error';
16
17 function wordRegexp(words) {
18 return new RegExp("^((" + words.join(")|(") + "))\\b", "i");
19 }
20
21 var singleOperators = new RegExp("^[\\+\\-\\*/%&\\\\|\\^~<>!]");
22 var singleDelimiters = new RegExp('^[\\(\\)\\[\\]\\{\\}@,:`=;\\.]');

Callers 1

vb.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected