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 e54155f commit 7e70dd8Copy full SHA for 7e70dd8
src/xmlparser/DocTypeReader.js
@@ -34,7 +34,8 @@ export default class DocTypeReader {
34
`Entity count (${entityCount + 1}) exceeds maximum allowed (${this.options.maxEntityCount})`
35
);
36
}
37
- const escaped = entityName.replace(/[.\-+*:]/g, '\\.');
+ //const escaped = entityName.replace(/[.\-+*:]/g, '\\.');
38
+ const escaped = entityName.replace(/[.*+?^${}()|[\]\\]/g, '\\$&');
39
entities[entityName] = {
40
regx: RegExp(`&${escaped};`, "g"),
41
val: val
0 commit comments