From 19be66383c935cde09ed638033995f7a485cda3a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=81lvaro=20Mond=C3=A9jar?= Date: Wed, 13 Mar 2024 01:11:26 +0100 Subject: [PATCH] Properly remove SVG attributes with SVGO (#10618) --- svgo.config.mjs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/svgo.config.mjs b/svgo.config.mjs index 21f32595e..0d8971684 100644 --- a/svgo.config.mjs +++ b/svgo.config.mjs @@ -71,7 +71,7 @@ export default { // Sort the attributes on the 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:.*(?