MCPcopy Create free account
hub / github.com/Script-Hub-Org/Script-Hub / escapeRegExp

Function escapeRegExp

Rewrite-Parser.beta.js:2335–2337  ·  view source on GitHub ↗
(str)

Source from the content-addressed store, hash-verified

2333}
2334
2335function escapeRegExp(str) {
2336 return `${str}`.replace(/[.*+?^${}()|[\]\\]/g, '\\$&')
2337}
2338
2339function normalizeArgumentsDescLine(str) {
2340 return `${str ?? ''}`

Callers 1

rewriteArgumentTagKeyFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected