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:506–508 ·
view source on GitHub ↗
(value: string)
Source
from the content-addressed store, hash-verified
504
}
505
506
function
escapeRegExp(value: string): string {
507
return
value.replace(/[|\\{}()[\]^$+?.]/g,
"\\$&"
)
508
}
509
510
function
globToRegExp(glob: string): RegExp {
511
let
source =
"^"
Callers
1
globToRegExp
Function · 0.70
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected