Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/codeceptjs/CodeceptJS
/ escapeRegExp
Function
escapeRegExp
lib/assert/include.js:72–74 ·
view source on GitHub ↗
(str)
Source
from the content-addressed store, hash-verified
70
export
const
fileIncludes = file =>
new
InclusionAssertion({ file, jar:
'file {{file}}'
})
71
72
function
escapeRegExp(str) {
73
return
str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,
'\\$&'
)
74
}
Callers
1
getFailedNegation
Method · 0.85
Calls
no outgoing calls
Tested by
no test coverage detected