Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
hub
/
github.com/webpack/webpack
/ quoteMeta
Function
quoteMeta
test/checkArrayExpectation.js:11–11 · test/checkArrayExpectation.js::quoteMeta
(str)
Source
from the content-addressed store, hash-verified
9
* @returns {string} escaped string
10
*/
11
const
quoteMeta = (str) => str.replace(/[.*+?^${}()|[\]\\]/g,
class
="st">"\\$&");
12
13
/**
14
* Derives the webpack root directory from a test directory path.
Callers
1
normalizeString
Function · 0.70
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected