From 1ac63eb4da424d75ab5c7cfbef8aca3d13761a17 Mon Sep 17 00:00:00 2001 From: Menci Date: Sat, 24 Jan 2026 05:24:56 +0800 Subject: [PATCH] fix: disable stripping on XML parsing --- src/utils/fs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/fs.ts b/src/utils/fs.ts index 00b0222..5f3730e 100644 --- a/src/utils/fs.ts +++ b/src/utils/fs.ts @@ -7,7 +7,7 @@ export async function* parseXmls(stream: ReturnType) { for await (const file of stream) { const fileName = typeof file === 'string' ? file : file.fullpath(); const xmlString = await fs.promises.readFile(fileName, 'utf-8'); - const xml = new XMLParser({ ignoreAttributes: false, allowBooleanAttributes: true }).parse(xmlString); + const xml = new XMLParser({ ignoreAttributes: false, allowBooleanAttributes: true, trimValues: false }).parse(xmlString); yield { fileName, xml }; } }