fast-xml-parser
Advanced tools
Comparing version 3.17.0 to 3.17.1
{ | ||
"name": "fast-xml-parser", | ||
"version": "3.17.0", | ||
"version": "3.17.1", | ||
"description": "Validate XML or Parse XML to JS/JSON very fast without C/C++ based libraries", | ||
@@ -5,0 +5,0 @@ "main": "./src/parser.js", |
@@ -211,5 +211,5 @@ 'use strict'; | ||
i = xmlData.indexOf("?>", i) + 1; | ||
} else if( xmlData[i+2] === '-') { | ||
} else if( xmlData[i+1] === '!' && xmlData[i+2] === '-') { | ||
i = xmlData.indexOf("-->", i) + 2; | ||
} else if( xmlData[i+2] === 'D') { | ||
} else if( xmlData[i+1] === '!' && xmlData[i+2] === 'D') { | ||
const closeIndex = xmlData.indexOf(">",i) | ||
@@ -226,10 +226,2 @@ const tagExp = xmlData.substr(i,closeIndex); | ||
//save previous value to the parent node | ||
/* if(currentNode){ | ||
if(currentNode.val){ | ||
currentNode.val = util.getValue(currentNode.val) + '' + processTagValue2(currentNode.tagname, textData , options); | ||
}else{ | ||
currentNode.val = processTagValue2(currentNode.tagname, textData , options); | ||
} | ||
} */ | ||
//considerations | ||
@@ -236,0 +228,0 @@ //1. CDATA will always have parent node |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
290406
1521