We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddcd0ac commit 943ef0eCopy full SHA for 943ef0e
1 file changed
src/xmlparser/OrderedObjParser.js
@@ -77,8 +77,9 @@ function addExternalEntities(externalEntities){
77
const entKeys = Object.keys(externalEntities);
78
for (let i = 0; i < entKeys.length; i++) {
79
const ent = entKeys[i];
80
+ const escaped = ent.replace(/[.\-+*:]/g, '\\.');
81
this.lastEntities[ent] = {
- regex: new RegExp("&"+ent+";","g"),
82
+ regex: new RegExp("&"+escaped+";","g"),
83
val : externalEntities[ent]
84
}
85
0 commit comments