mirror of
				https://github.com/Mibew/simple-icons.git
				synced 2025-10-31 10:31:06 +03:00 
			
		
		
		
	Properly remove SVG attributes with SVGO (#10618)
This commit is contained in:
		
							parent
							
								
									0c847d8589
								
							
						
					
					
						commit
						19be66383c
					
				| @ -71,7 +71,7 @@ export default { | ||||
|       // Sort the attributes on the <svg> tag
 | ||||
|       name: 'sortAttrs', | ||||
|       params: { | ||||
|         order: ['role', 'viewBox'], | ||||
|         order: ['role', 'viewBox', 'xmlns'], | ||||
|         xmlnsOrder: 'end', | ||||
|       }, | ||||
|     }, | ||||
| @ -80,7 +80,11 @@ export default { | ||||
|     { | ||||
|       name: 'removeAttrs', | ||||
|       params: { | ||||
|         attrs: ['svg:(?!(role|viewBox|xmlns))', 'path:(?!d)', 'title:*'], | ||||
|         attrs: [ | ||||
|           'svg:.*(?<!((role)|(viewBox)|(xmlns)))', | ||||
|           'path:(?!d)', | ||||
|           'title:*', | ||||
|         ], | ||||
|       }, | ||||
|     }, | ||||
|     'removeElementsByAttr', | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user