summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/reusePaths.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/reusePaths.js
parent2b4ab36917baef56c7ce1602966f941be15af785 (diff)
upgrade
Diffstat (limited to 'node_modules/svgo/plugins/reusePaths.js')
-rw-r--r--node_modules/svgo/plugins/reusePaths.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/svgo/plugins/reusePaths.js b/node_modules/svgo/plugins/reusePaths.js
index 89ff1f6b..8c2ddf0d 100644
--- a/node_modules/svgo/plugins/reusePaths.js
+++ b/node_modules/svgo/plugins/reusePaths.js
@@ -27,7 +27,7 @@ exports.fn = (root) => {
const stylesheet = collectStylesheet(root);
/**
- * @type {Map<string, Array<XastElement>>}
+ * @type {Map<string, XastElement[]>}
*/
const paths = new Map();
@@ -123,7 +123,7 @@ exports.fn = (root) => {
originalId == null ||
hrefs.has(originalId) ||
stylesheet.rules.some(
- (rule) => rule.selector === `#${originalId}`
+ (rule) => rule.selector === `#${originalId}`,
)
) {
reusablePath.attributes.id = 'reuse-' + index++;