MCPcopy Index your code
hub / github.com/refined-github/refined-github / escapeMatcher

Function escapeMatcher

source/helpers/dom-utils.ts:77–78  ·  view source on GitHub ↗
(matcher: RegExp | string)

Source from the content-addressed store, hash-verified

75 typeof matcher === 'string' ? matcher === string : matcher.test(string);
76
77const escapeMatcher = (matcher: RegExp | string): string =>
78 typeof matcher === 'string' ? `"${matcher}"` : String(matcher);
79
80const isTextNode = (node: Text | ChildNode): boolean =>
81 node instanceof Text || ([...node.childNodes].every(childNode => childNode instanceof Text));

Callers 1

assertNodeContentFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected