Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
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
239
export
function
sanitizeIdentifier(name: string): string {
240
return
name.replace(/\W/g,
'_'
);
241
}
Callers
3
i18nGenerateClosureVar
Function · 0.90
addNamesToView
Function · 0.90
identifierName
Function · 0.85
Calls
1
replace
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…