Skip to content

Commit abed474

Browse files
committed
whitespace check (fixes #2075)
1 parent 554d300 commit abed474

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bits/22_xmlutils.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
var XML_HEADER = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\r\n';
22
var attregexg=/([^"\s?>\/]+)\s*=\s*((?:")([^"]*)(?:")|(?:')([^']*)(?:')|([^'">\s]+))/g;
3-
var tagregex=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s?[\/\?]?>/g;
3+
var tagregex=/<[\/\?]?[a-zA-Z0-9:_-]+(?:\s+[^"\s?>\/]+\s*=\s*(?:"[^"]*"|'[^']*'|[^'">\s=]+))*\s?[\/\?]?>/mg;
44

55
if(!(XML_HEADER.match(tagregex))) tagregex = /<[^>]*>/g;
66
var nsregex=/<\w*:/, nsregex2 = /<(\/?)\w+:/;

0 commit comments

Comments
 (0)