Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/react-static/react-static
/ escapeRegExp
Function
escapeRegExp
packages/react-static/src/utils/index.js:58–60 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
56
57
const
escapeReg = /[\\^$.*+?()[\]{}|]/g
58
export
function
escapeRegExp(str) {
59
return
str.replace(escapeReg,
'\\$&'
)
60
}
Callers
3
binHelper.js
File · 0.85
setIgnorePath
Function · 0.85
chunkBuilder.js
File · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…