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

@ -328,10 +328,10 @@ function _flattenStyles(compId: string, styles: Array<any | any[]>, target: stri
return target;
}
var NS_PREFIX_RE = /^@([^:]+):(.+)/g;
var NS_PREFIX_RE = /^:([^:]+):(.+)/g;
function splitNamespace(name: string): string[] {
if (name[0] != '@') {
if (name[0] != ':') {
return [null, name];
}
let match = RegExpWrapper.firstMatch(NS_PREFIX_RE, name);