MCPcopy Index your code
hub / github.com/feiyu563/PrometheusAlert / wordRegexp

Function wordRegexp

static/plugins/codemirror/mode/python/python.js:14–16  ·  view source on GitHub ↗
(words)

Source from the content-addressed store, hash-verified

12 "use strict";
13
14 function wordRegexp(words) {
15 return new RegExp("^((" + words.join(")|(") + "))\\b");
16 }
17
18 var wordOperators = wordRegexp(["and", "or", "not", "is"]);
19 var commonKeywords = ["as", "assert", "break", "class", "continue",

Callers 1

python.jsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected