MCPcopy
hub / github.com/vitejs/vite / escapeRegex

Function escapeRegex

scripts/mergeChangelog.ts:39–41  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

37]
38
39function escapeRegex(str: string): string {
40 return str.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
41}
42
43const versionHeaderRe = /^## (?:<small>)?\[/
44

Callers 2

findReleaseHeaderIndexFunction · 0.70
findEndBoundaryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected