Ver Fonte

Поправлен баг

Book Pauk há 4 anos atrás
pai
commit
2c94025ba3
1 ficheiros alterados com 4 adições e 4 exclusões
  1. 4 4
      server/core/xmlParser.js

+ 4 - 4
server/core/xmlParser.js

@@ -9,12 +9,12 @@ function formatXml(xmlParsed, encoding = 'utf-8', textFilterFunc) {
 function formatXmlNode(node, textFilterFunc) {
 function formatXmlNode(node, textFilterFunc) {
     textFilterFunc = (textFilterFunc ? textFilterFunc : text => text);
     textFilterFunc = (textFilterFunc ? textFilterFunc : text => text);
 
 
-    const formatXmlNodeImpl = (node, name) => {
+    const formatNode = (node, name) => {
         let out = '';
         let out = '';
 
 
         if (Array.isArray(node)) {
         if (Array.isArray(node)) {
             for (const n of node) {
             for (const n of node) {
-                out += formatXmlNode(n);
+                out += formatNode(n);
             }
             }
         } else if (typeof node == 'string') {
         } else if (typeof node == 'string') {
             if (name)
             if (name)
@@ -45,7 +45,7 @@ function formatXmlNode(node, textFilterFunc) {
                     continue;
                     continue;
 
 
                 const n = node[nodeName];
                 const n = node[nodeName];
-                tBody += formatXmlNodeImpl(n, nodeName);
+                tBody += formatNode(n, nodeName);
             }
             }
             
             
             if (name)
             if (name)
@@ -56,7 +56,7 @@ function formatXmlNode(node, textFilterFunc) {
         return out;
         return out;
     }
     }
 
 
-    return formatXmlNodeImpl(node);
+    return formatNode(node);
 }
 }
 
 
 function parseXml(xmlString, lowerCase = true) {
 function parseXml(xmlString, lowerCase = true) {