Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Effect-TS/effect
/ escapeRegExp
Function
escapeRegExp
packages/tools/jsdocs/src/Jsdocs.ts:492–494 ·
view source on GitHub ↗
(value: string)
Source
from the content-addressed store, hash-verified
490
}
491
492
function
escapeRegExp(value: string): string {
493
return
value.replace(/[|\\{}()[\]^$+?.]/g,
"\\$&"
)
494
}
495
496
function
globToRegExp(glob: string): RegExp {
497
let
source =
"^"
Callers
1
globToRegExp
Function · 0.70
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected