Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/cloudflare/agents
/ escapeRegExp
Function
escapeRegExp
packages/shell/src/helpers.ts:472–474 ·
view source on GitHub ↗
(value: string)
Source
from the content-addressed store, hash-verified
470
}
471
472
function
escapeRegExp(value: string): string {
473
return
value.replace(/[.*+?^${}()|[\]\\]/g,
"\\$&"
);
474
}
475
476
function
unifiedDiff(
477
before: string,
Callers
1
createTextMatcher
Function · 0.85
Calls
1
replace
Method · 0.65
Tested by
no test coverage detected