MCPcopy Index your code
hub / github.com/github/copilot-sdk / escapeRegex

Function escapeRegex

scripts/codegen/utils.ts:691–691  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

689 typeNames: Iterable<string>
690): string {
691 const escapeRegex = (s: string): string => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
692 let result = code;
693 const sortedTypes = [...typeNames].sort((a, b) => b.length - a.length);
694 // Phase 1: rename each identifier globally at word boundaries.

Callers 2

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…