Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/webpack/webpack
/ quoteMeta
Function
quoteMeta
test/Defaults.unittest.js:18–18 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
16
* @returns {string} Escaped string
17
*/
18
const
quoteMeta = (str) => str.replace(/[-[\]\\/{}()*+?.^$|]/g,
"\\$&"
);
19
20
const
cwd = process.cwd();
21
const
cwdRegExp =
new
RegExp(
Callers
2
Defaults.unittest.js
File · 0.70
normalize
Function · 0.70
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected