From 275f9dc0bdf3e58aa36b800f55f8648fbc55d8af Mon Sep 17 00:00:00 2001 From: littleblack111 Date: Thu, 4 Jan 2024 11:07:54 +0800 Subject: upgrade --- node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js') diff --git a/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js b/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js index faa93dff..73e6bcda 100644 --- a/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js +++ b/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js @@ -24,9 +24,9 @@ exports.fn = () => { if (node.name === 'g') { for (const name of Object.keys(node.attributes)) { if ( - attrsGroups.presentation.includes(name) === true && - inheritableAttrs.includes(name) === false && - presentationNonInheritableGroupAttrs.includes(name) === false + attrsGroups.presentation.has(name) && + !inheritableAttrs.has(name) && + !presentationNonInheritableGroupAttrs.has(name) ) { delete node.attributes[name]; } -- cgit v1.2.3