Update the regex to search for www OR schemas for the xmlns removal

This commit is contained in:
Erjan Gavalji
2015-11-10 15:06:10 +02:00
parent 29ca851652
commit 4c7b9d59ba

View File

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