MCPcopy
hub / github.com/angular/angular-cli / validateClassName

Function validateClassName

packages/schematics/angular/utility/validation.ts:25–29  ·  view source on GitHub ↗
(className: string)

Source from the content-addressed store, hash-verified

23}
24
25export function validateClassName(className: string): void {
26 if (!ecmaIdentifierNameRegExp.test(className)) {
27 throw new SchematicsException(`Class name "${className}" is invalid.`);
28 }
29}

Callers 6

index.tsFile · 0.90
index.tsFile · 0.90
index.tsFile · 0.90
generateFromFilesFunction · 0.90
index.tsFile · 0.90
index.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected