diff options
Diffstat (limited to 'node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js')
| -rw-r--r-- | node_modules/svgo/plugins/removeNonInheritableGroupAttrs.js | 6 |
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]; } |
