Skip to content

Commit 5f13ab1

Browse files
committed
fix(compiler) unregress regression fix regression
1 parent ffa4871 commit 5f13ab1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/@angular/compiler/src/compile_metadata.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ import {
2424
StringMapWrapper,
2525
} from '@angular/facade';
2626
import {CssSelector} from './selector';
27-
import {splitAtColon} from './util';
27+
import {splitAtColon, sanitizeIdentifier} from './util';
2828
import {getUrlScheme} from './url_resolver';
2929

3030
// group 1: "property" from "[property]"
@@ -316,7 +316,7 @@ export class CompileTokenMetadata implements CompileMetadataWithIdentifier {
316316
(isPresent(ak) && ak == token2.assetCacheKey);
317317
}
318318

319-
get name(): string { return isPresent(this.value) ? this.value : this.identifier.name; }
319+
get name(): string { return isPresent(this.value) ? sanitizeIdentifier(this.value) : this.identifier.name; }
320320
}
321321

322322
export class CompileTokenMap<VALUE> {

0 commit comments

Comments
 (0)