MCPcopy Create free account
hub / github.com/colbymchenry/codegraph / escapeRegExp

Function escapeRegExp

src/resolution/pascal-scope.ts:1090–1092  ·  view source on GitHub ↗
(s: string)

Source from the content-addressed store, hash-verified

1088}
1089
1090function escapeRegExp(s: string): string {
1091 return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
1092}
1093
1094/** The class a member's value has: a field's or variable's declared type, a property's, a function's result. */
1095function typeOfMember(member: Node, context: ResolutionContext): Node | null {

Callers 2

declaredInRoutineFunction · 0.70
declaredTypeTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected