Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Openpanel-dev/openpanel
/ escapeRegex
Function
escapeRegex
scripts/add-internal-links.mjs:135–137 ·
view source on GitHub ↗
(s)
Source
from the content-addressed store, hash-verified
133
}
134
135
function
escapeRegex(s) {
136
return
s.replace(/[.*+?^${}()|[\]\\]/g,
'\\$&'
);
137
}
138
139
// ── Core processing ──────────────────────────────────────────────────
140
Callers
1
processFile
Function · 0.85
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected