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

Function escapeRegExp

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

Source from the content-addressed store, hash-verified

2624}
2625
2626function escapeRegExp(s: string): string {
2627 return s.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
2628}
2629
2630/** The class a member's value has: a field's or variable's declared type, a property's, a function's result. */
2631function typeOfMember(member: Node, context: ResolutionContext): Node | null {

Callers 6

declaredAsLocalFunction · 0.70
pascalCallArgumentCountFunction · 0.70
declaredInRoutineFunction · 0.70
valueTypeOfFunction · 0.70
localTypeTextFunction · 0.70
declaredTypeTextFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected