mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-08-16 03:31:45 +08:00
default namespace replaced with regex
This commit is contained in:
@ -154,7 +154,10 @@ function parseInternal(value: string, exports: any): componentBuilder.ComponentM
|
||||
throw new Error("XML parse error: " + e.message);
|
||||
}, true);
|
||||
|
||||
xmlParser.parse(value.replace('xmlns="http://www.nativescript.org/tns.xsd"', "").replace("xmlns='http://www.nativescript.org/tns.xsd'", ""));
|
||||
if (types.isString(value)) {
|
||||
value = value.replace(/xmlns=("|')http:\/\/www.nativescript.org\/tns.xsd\1/, "");
|
||||
xmlParser.parse(value);
|
||||
}
|
||||
|
||||
return rootComponentModule;
|
||||
}
|
||||
|
Reference in New Issue
Block a user