aboutsummaryrefslogtreecommitdiff
path: root/scripts/utils.js
diff options
context:
space:
mode:
Diffstat (limited to 'scripts/utils.js')
-rw-r--r--scripts/utils.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/scripts/utils.js b/scripts/utils.js
index 86ea64aa..f305dc72 100644
--- a/scripts/utils.js
+++ b/scripts/utils.js
@@ -12,3 +12,8 @@ export const camelize = function (str) {
return word.toUpperCase()
}).replace(/\s+/g, '')
}
+
+export const optimizeSvgCode = function (svgCode) {
+ return svgCode
+ .replace('<path stroke="none" d="M0 0h24v24H0z" fill="none"/>', '')
+}