MCPcopy Index your code
hub / github.com/angular/angular / sanitizeIdentifier

Function sanitizeIdentifier

packages/compiler/src/parse_util.ts:239–241  ·  view source on GitHub ↗
(name: string)

Source from the content-addressed store, hash-verified

237}
238
239export function sanitizeIdentifier(name: string): string {
240 return name.replace(/\W/g, '_');
241}

Callers 3

i18nGenerateClosureVarFunction · 0.90
addNamesToViewFunction · 0.90
identifierNameFunction · 0.85

Calls 1

replaceMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…