refactor: add __snapshot in d.ts and fix checks

This commit is contained in:
vakrilov
2019-08-02 11:34:24 +03:00
parent 52b8152362
commit fed360d763
6 changed files with 8 additions and 8 deletions

View File

@ -106,14 +106,14 @@ function _HandleAmpEntities(found, decimalValue, hexValue, wordValue) {
}
var res = _ampCodes.get(wordValue);
if (res) {
return String.fromCharCode(res);
return String.fromCodePoint(res);
}
return found;
}
if (decimalValue) {
return String.fromCharCode(parseInt(decimalValue, 10));
return String.fromCodePoint(parseInt(decimalValue, 10));
}
return String.fromCharCode(parseInt(hexValue, 16));
return String.fromCodePoint(parseInt(hexValue, 16));
}
var XmlParser = (function () {
function XmlParser(onEvent, onError, processNamespaces) {