chore(parsing): change internal usage of @ to : for namespaced values

Closes #8346
This commit is contained in:
Matias Niemelä
2016-04-29 14:54:46 -07:00
committed by Martin Probst
parent 7a524e3deb
commit 9fbafba993
4 changed files with 17 additions and 17 deletions

View File

@ -408,10 +408,10 @@ export function getHtmlTagDefinition(tagName: string): HtmlTagDefinition {
return isPresent(result) ? result : DEFAULT_TAG_DEFINITION;
}
var NS_PREFIX_RE = /^@([^:]+):(.+)/g;
var NS_PREFIX_RE = /^:([^:]+):(.+)/g;
export function splitNsName(elementName: string): string[] {
if (elementName[0] != '@') {
if (elementName[0] != ':') {
return [null, elementName];
}
let match = RegExpWrapper.firstMatch(NS_PREFIX_RE, elementName);
@ -423,5 +423,5 @@ export function getNsPrefix(elementName: string): string {
}
export function mergeNsAndName(prefix: string, localName: string): string {
return isPresent(prefix) ? `@${prefix}:${localName}` : localName;
return isPresent(prefix) ? `:${prefix}:${localName}` : localName;
}