summaryrefslogtreecommitdiff
path: root/node_modules/svgo/plugins/removeEditorsNSData.js
diff options
context:
space:
mode:
Diffstat (limited to 'node_modules/svgo/plugins/removeEditorsNSData.js')
-rw-r--r--node_modules/svgo/plugins/removeEditorsNSData.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/node_modules/svgo/plugins/removeEditorsNSData.js b/node_modules/svgo/plugins/removeEditorsNSData.js
index e85bef89..852681bf 100644
--- a/node_modules/svgo/plugins/removeEditorsNSData.js
+++ b/node_modules/svgo/plugins/removeEditorsNSData.js
@@ -19,12 +19,12 @@ exports.description = 'removes editors namespaces, elements and attributes';
* @type {import('./plugins-types').Plugin<'removeEditorsNSData'>}
*/
exports.fn = (_root, params) => {
- let namespaces = editorNamespaces;
+ let namespaces = [...editorNamespaces];
if (Array.isArray(params.additionalNamespaces)) {
namespaces = [...editorNamespaces, ...params.additionalNamespaces];
}
/**
- * @type {Array<string>}
+ * @type {string[]}
*/
const prefixes = [];
return {