Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
39
function
escapeRegex(str: string): string {
40
return
str.replace(/[.*+?^${}()|[\]\\]/g,
'\\$&'
)
41
}
42
43
const
versionHeaderRe = /^## (?:<small>)?\[/
44
Callers
2
findReleaseHeaderIndex
Function · 0.70
findEndBoundary
Function · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected