mirror of
https://github.com/billsonnn/nitro-converter.git
synced 2024-11-26 17:30:52 +01:00
Remove comments from XML
This commit is contained in:
parent
b4a591b3a6
commit
c0bd2fa6c1
@ -54,7 +54,10 @@ export class SWFConverter extends Converter
|
|||||||
|
|
||||||
if(!binaryData) return null;
|
if(!binaryData) return null;
|
||||||
|
|
||||||
return await parseStringPromise(binaryData.binaryData);
|
//Will fix some malformed comments exception.
|
||||||
|
const removedComments: string = binaryData.binaryData.replace(/<!--.*?-->/sg, '');
|
||||||
|
|
||||||
|
return await parseStringPromise(removedComments);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected static async getAssetsXML(habboAssetSWF: HabboAssetSWF): Promise<any>
|
protected static async getAssetsXML(habboAssetSWF: HabboAssetSWF): Promise<any>
|
||||||
|
Loading…
Reference in New Issue
Block a user