MCPcopy Index your code
hub / github.com/tinyplex/tinybase / escapeRegExp

Function escapeRegExp

site/shots.ts:16–17  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

14const DOC_SHOT_REFS = /\/shots\/[^\s)"']+/g;
15const DOC_SHOT_OUTPUT_PATHS = ['.html', '.json', '.md'];
16const escapeRegExp = (value: string): string =>
17 value.replaceAll(/[.*+?^${}()|[\]\\]/g, '\\$&');
18
19const forEachDeepFile = (
20 dir: string,

Callers 1

rewritePublishedDocShotsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…