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

Function matchString

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

Source from the content-addressed store, hash-verified

72};
73
74const matchString = (matcher: RegExp | string, string: string): boolean =>
75 typeof matcher === 'string' ? matcher === string : matcher.test(string);
76
77const escapeMatcher = (matcher: RegExp | string): string =>
78 typeof matcher === 'string' ? `"${matcher}"` : String(matcher);

Callers 1

isTextNodeContainingFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected