MCPcopy 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

70export const fileIncludes = file => new InclusionAssertion({ file, jar: 'file {{file}}' })
71
72function escapeRegExp(str) {
73 return str.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g, '\\$&')
74}

Callers 1

getFailedNegationMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected