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

Function escapeRegExp

src/components/referencesPanel/utils.js:26–28  ·  view source on GitHub ↗
(string)

Source from the content-addressed store, hash-verified

24}
25
26export function escapeRegExp(string) {
27 return string.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
28}
29
30export function groupReferencesByFile(references) {
31 const grouped = {};

Callers 1

oninputFunction · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected