@hirokisakabe/pom 4.1.0 → 4.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -385,7 +385,7 @@ function getAttributes(node) {
|
|
|
385
385
|
if (rawAttrs) {
|
|
386
386
|
for (const [key, value] of Object.entries(rawAttrs)) {
|
|
387
387
|
const attrName = key.startsWith("@_") ? key.slice(2) : key;
|
|
388
|
-
attrs[attrName] = value;
|
|
388
|
+
attrs[attrName] = value.trim();
|
|
389
389
|
}
|
|
390
390
|
}
|
|
391
391
|
return attrs;
|
|
@@ -821,7 +821,7 @@ export function parseXml(xmlString) {
|
|
|
821
821
|
attributeNamePrefix: "@_",
|
|
822
822
|
parseAttributeValue: false,
|
|
823
823
|
parseTagValue: false,
|
|
824
|
-
trimValues:
|
|
824
|
+
trimValues: false,
|
|
825
825
|
});
|
|
826
826
|
const wrappedXml = `<__root__>${xmlString}</__root__>`;
|
|
827
827
|
const parsed = parser.parse(wrappedXml);
|