From abed4748733868e923e115b613ef4fc6da61eb1f Mon Sep 17 00:00:00 2001 From: Israel Fraga Date: Sat, 8 Aug 2020 17:24:00 -0400 Subject: [PATCH] whitespace check (fixes #2075) --- bits/22_xmlutils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bits/22_xmlutils.js b/bits/22_xmlutils.js index dc1880e..2e7c6d8 100644 --- a/bits/22_xmlutils.js +++ b/bits/22_xmlutils.js @@ -1,6 +1,6 @@ var XML_HEADER = '\r\n'; var attregexg=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g; -var tagregex=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s?[\/\?]?>/g; +var tagregex=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s?[\/\?]?>/mg; if(!(XML_HEADER.match(tagregex))) tagregex = /<[^>]*>/g; var nsregex=/<\w*:/, nsregex2 = /<(\/?)\w+:/;