fast-xml-parser
Advanced tools
Comparing version 4.0.15 to 4.1.0
Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library. | ||
**4.1.0 / 2023-02-02** | ||
* Fix '<' or '>' in DTD comment throwing an error. (#533) (By [Adam Baker](https://github.com/Cwazywierdo)) | ||
* Set "eNotation" to 'true' as default | ||
**4.0.15 / 2023-01-25** | ||
* make "eNotation" optional | ||
**4.0.14 / 2023-01-22** | ||
@@ -4,0 +11,0 @@ * fixed: add missed typing "eNotation" to parse values |
{ | ||
"name": "fast-xml-parser", | ||
"version": "4.0.15", | ||
"version": "4.1.0", | ||
"description": "Validate XML, Parse XML, Build XML without C/C++ based libraries", | ||
@@ -5,0 +5,0 @@ "main": "./src/fxp.js", |
@@ -17,3 +17,3 @@ //TODO: handle comments | ||
for(;i<xmlData.length;i++){ | ||
if (xmlData[i] === '<') { | ||
if (xmlData[i] === '<' && !comment) { | ||
if( hasBody && | ||
@@ -82,10 +82,11 @@ xmlData[i+1] === '!' && | ||
comment = false; | ||
}else{ | ||
throw new Error(`Invalid XML comment in DOCTYPE`); | ||
angleBracketsCount--; | ||
} | ||
}else if(entity){ | ||
parseEntityExp(exp, entities); | ||
entity = false; | ||
}else{ | ||
if(entity) { | ||
parseEntityExp(exp, entities); | ||
entity = false; | ||
} | ||
angleBracketsCount--; | ||
} | ||
angleBracketsCount--; | ||
if (angleBracketsCount === 0) { | ||
@@ -92,0 +93,0 @@ break; |
@@ -18,3 +18,3 @@ | ||
leadingZeros: true, | ||
eNotation: false | ||
eNotation: true | ||
}, | ||
@@ -21,0 +21,0 @@ tagValueProcessor: function(tagName, val) { |
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
100618
1896