MCPcopy
hub / github.com/PatrickJS/awesome-cursorrules / escapeRegExp

Function escapeRegExp

scripts/check-awesome-list.mjs:126–128  ·  view source on GitHub ↗
(value)

Source from the content-addressed store, hash-verified

124}
125
126function escapeRegExp(value) {
127 return value.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
128}
129
130function checkEntryDescriptions(readme) {
131 for (const { lineNumber, description } of extractEntries(readme)) {

Callers 2

checkContentsHierarchyFunction · 0.85
extractSectionFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected