From cc73065e1469147a0104dc122b0cdf6724354446 Mon Sep 17 00:00:00 2001 From: yakov116 <16872793+yakov116@users.noreply.github.com> Date: Tue, 13 Jun 2023 19:52:38 -0400 Subject: [PATCH] Remove unused code (#587) --- src/xmlparser/DocTypeReader.js | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/xmlparser/DocTypeReader.js b/src/xmlparser/DocTypeReader.js index 013dfc5f..bcf9dee4 100644 --- a/src/xmlparser/DocTypeReader.js +++ b/src/xmlparser/DocTypeReader.js @@ -142,10 +142,6 @@ function isNotation(xmlData, i){ return false } -//an entity name should not contains special characters that may be used in regex -//Eg !?\\\/[]$%{}^&*()<> -const specialChar = "!?\\\/[]$%{}^&*()<>|+"; - function validateEntityName(name){ if (util.isName(name)) return name;