MCPcopy Create free account
hub / github.com/devcontainers/cli / escapeRegExCharacters

Function escapeRegExCharacters

src/spec-utils/strings.ts:7–9  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

5
6
7export function escapeRegExCharacters(str: string) {
8 return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
9}

Callers 2

getEntPasswdShellCommandFunction · 0.90
replacingLogFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected