diff --git a/lib/saxes.js b/lib/saxes.js index 9276963c..d3891909 100644 --- a/lib/saxes.js +++ b/lib/saxes.js @@ -3,7 +3,8 @@ const { isS, isChar: isChar10, isNameStartChar, isNameChar, S_LIST, NAME_RE, } = require("xmlchars/xml/1.0/ed5"); -const { isChar: isChar11, isRestrictedChar } = require("xmlchars/xml/1.1/ed2"); +const { isChar: isChar11, isCharAndNotRestricted } = + require("xmlchars/xml/1.1/ed2"); const { isNCNameStartChar, isNCNameChar, NC_NAME_RE } = require("xmlchars/xmlns/1.0/ed3"); @@ -707,7 +708,7 @@ class SaxesParser { // In XML 1.1 the character we read must satisfy the Char production but // not the RestrictedChar production. - if (!isChar11(code) || isRestrictedChar(code)) { + if (!isCharAndNotRestricted(code)) { this.fail("disallowed character."); } } diff --git a/package-lock.json b/package-lock.json index d95d697a..712dbc5b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1513,7 +1513,7 @@ }, "load-json-file": { "version": "2.0.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", + "resolved": "http://registry.npmjs.org/load-json-file/-/load-json-file-2.0.0.tgz", "integrity": "sha1-eUfkIUmvgNaWy/eXvKq8/h/inKg=", "dev": true, "requires": {