summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/moveElemsAttrsToGroup.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/moveElemsAttrsToGroup.js
parent2b4ab36917baef56c7ce1602966f941be15af785 (diff)
upgrade
Diffstat (limited to 'node_modules/svgo/plugins/moveElemsAttrsToGroup.js')
-rw-r--r--node_modules/svgo/plugins/moveElemsAttrsToGroup.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/svgo/plugins/moveElemsAttrsToGroup.js b/node_modules/svgo/plugins/moveElemsAttrsToGroup.js
index 5f46e632..633f4439 100644
--- a/node_modules/svgo/plugins/moveElemsAttrsToGroup.js
+++ b/node_modules/svgo/plugins/moveElemsAttrsToGroup.js
@@ -64,7 +64,7 @@ exports.fn = (root) => {
let everyChildIsPath = true;
for (const child of node.children) {
if (child.type === 'element') {
- if (pathElems.includes(child.name) === false) {
+ if (!pathElems.has(child.name)) {
everyChildIsPath = false;
}
if (initial) {
@@ -72,7 +72,7 @@ exports.fn = (root) => {
// collect all inheritable attributes from first child element
for (const [name, value] of Object.entries(child.attributes)) {
// consider only inheritable attributes
- if (inheritableAttrs.includes(name)) {
+ if (inheritableAttrs.has(name)) {
commonAttributes.set(name, value);
}
}