Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/decaporg/decap-cms
/ escapeRegExp
Function
escapeRegExp
cypress/utils/regexp.js:1–3 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
1
const
escapeRegExp = string => {
2
return
string.replace(/[-/\\^$*+?.()|[\]{}]/g,
'\\$&'
);
3
};
4
5
module.exports = { escapeRegExp };
Callers
7
matchRoute
Function · 0.90
entrySlug
Function · 0.85
sanitizeSlug
Function · 0.85
getFilePath
Function · 0.85
sanitizeString
Function · 0.85
sanitizeString
Function · 0.85
sanitizeString
Function · 0.85
Calls
1
replace
Method · 0.80
Tested by
no test coverage detected