MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / escapeRegExp

Function escapeRegExp

src/cm/supportedModes.ts:56–58  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

54}
55
56function escapeRegExp(value: string): string {
57 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
58}
59
60async function shouldAutoCloseTags(): Promise<boolean> {
61 const { default: appSettings } = await import("lib/settings");

Callers 1

supportedModes.tsFile · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected