summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js
diff options
context:
space:
mode:
authorlittleblack111 <littleblack11111@gmail.com>2024-01-04 11:07:54 +0800
committerlittleblack111 <littleblack11111@gmail.com>2024-01-04 11:07:54 +0800
commit275f9dc0bdf3e58aa36b800f55f8648fbc55d8af (patch)
tree81c7cf120fb703cfd5e3162f2366033d9fe5c7f8 /node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js
parent2b4ab36917baef56c7ce1602966f941be15af785 (diff)
upgrade
Diffstat (limited to 'node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js')
-rw-r--r--node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js6
1 files changed, 3 insertions, 3 deletions
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];
}