forked from sheetjs/sheetjs
		
	whitespace check (fixes #2075)
This commit is contained in:
		
							parent
							
								
									554d300413
								
							
						
					
					
						commit
						abed474873
					
				@ -1,6 +1,6 @@
 | 
			
		||||
var XML_HEADER = '<?xml version="1.0" encoding="UTF-8" standalone="yes"?>\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+:/;
 | 
			
		||||
 | 
			
		||||
		Loading…
	
		Reference in New Issue
	
	Block a user