MCPcopy Index your code
hub / github.com/itwanger/toBeBetterJavaer / escapeRegExp

Function escapeRegExp

scripts/sync-sidebar.js:472–474  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

470}
471
472function escapeRegExp(value) {
473 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
474}
475
476main();

Callers 2

findFallbackChildrenFunction · 0.85
findRouteArrayFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected