musicxml-io 0.5.2 → 0.5.3
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.
- package/dist/index.js +2 -1
- package/dist/index.mjs +2 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -244,7 +244,8 @@ function decodeTree(nodes) {
|
|
|
244
244
|
}
|
|
245
245
|
var TXML_OPTIONS = { noChildNodes: [] };
|
|
246
246
|
function parse(xmlString) {
|
|
247
|
-
const
|
|
247
|
+
const cleanedXml = xmlString.replace(/<\?(?!xml\s)[^?]*\?>/g, "");
|
|
248
|
+
const parsed = _txml.parse.call(void 0, cleanedXml, TXML_OPTIONS);
|
|
248
249
|
decodeTree(parsed);
|
|
249
250
|
let scorePartwiseVersion;
|
|
250
251
|
let scorePartwise;
|
package/dist/index.mjs
CHANGED
|
@@ -244,7 +244,8 @@ function decodeTree(nodes) {
|
|
|
244
244
|
}
|
|
245
245
|
var TXML_OPTIONS = { noChildNodes: [] };
|
|
246
246
|
function parse(xmlString) {
|
|
247
|
-
const
|
|
247
|
+
const cleanedXml = xmlString.replace(/<\?(?!xml\s)[^?]*\?>/g, "");
|
|
248
|
+
const parsed = txmlParse(cleanedXml, TXML_OPTIONS);
|
|
248
249
|
decodeTree(parsed);
|
|
249
250
|
let scorePartwiseVersion;
|
|
250
251
|
let scorePartwise;
|