Fix the broken regex in the builder

This commit is contained in:
Erjan Gavalji
2015-11-10 16:57:36 +02:00
parent ba187f2d98
commit 87e064c417

View File

@@ -176,7 +176,7 @@ function parseInternal(value: string, context: any): componentBuilder.ComponentM
}, true);
if (types.isString(value)) {
value = value.replace(/xmlns=("|')http:\/\/(www)|(schemas).nativescript.org\/tns.xsd\1/, "");
value = value.replace(/xmlns=("|')http:\/\/((www)|(schemas))\.nativescript\.org\/tns\.xsd\1/, "");
xmlParser.parse(value);
}