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

Function wordRegexp

static/editor.md/lib/codemirror/mode/cypher/cypher.js:16–18  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

14})(function(CodeMirror) {
15 "use strict";
16 var wordRegexp = function(words) {
17 return new RegExp("^(?:" + words.join("|") + ")$", "i");
18 };
19
20 CodeMirror.defineMode("cypher", function(config) {
21 var tokenBase = function(stream/*, state*/) {

Callers 1

cypher.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected