MCPcopy Create free account
hub / github.com/continuedev/continue / escapeRegex

Method escapeRegex

extensions/cli/src/ui/TextBuffer.ts:286–288  ·  view source on GitHub ↗
(str: string)

Source from the content-addressed store, hash-verified

284 }
285
286 private escapeRegex(str: string): string {
287 return str.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
288 }
289
290 // Creates placeholder for single line or multi-line pastes
291 private createPlaceholder(originalText: string): string {

Callers 1

expandAllPasteBlocksMethod · 0.95

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected