diff options
author | codecalm <codecalm@gmail.com> | 2022-04-17 20:43:39 +0200 |
---|---|---|
committer | codecalm <codecalm@gmail.com> | 2022-04-17 20:43:39 +0200 |
commit | 6a5f5bf0283458aabdcc34eb695175cfea4a632f (patch) | |
tree | 58fe67c2cc4529730890e032da903891e85d12a6 /scripts/utils.js | |
parent | 2.1.0 (diff) | |
download | tabler-icons-6a5f5bf0283458aabdcc34eb695175cfea4a632f.tar.xz |
build react scriptv2.0
Diffstat (limited to 'scripts/utils.js')
-rw-r--r-- | scripts/utils.js | 5 |
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"/>', '') +} |