MCPcopy Create free account
hub / github.com/SethGammon/Citadel / escapeRegExp

Function escapeRegExp

scripts/dashboard.js:400–402  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

398 return path.relative(projectRoot, filePath).replace(/\\/g, '/');
399}
400
401function escapeRegExp(value) {
402 return String(value).replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
403}
404
405function extractReportLines(content, label) {

Callers 3

extractReportLinesFunction · 0.70
extractBlockLineFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected