MCPcopy Create free account
hub / github.com/Acode-Foundation/Acode / escapeRegExp

Function escapeRegExp

utils/lang.js:394–396  ·  view source on GitHub ↗
(text)

Source from the content-addressed store, hash-verified

392}
393
394function escapeRegExp(text) {
395 return text.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
396}
397
398function createTypes() {
399 const enPath = path.resolve(dir, "en-us.json");

Callers 1

updateFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected