aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-20 15:14:30 +0100
committercodecalm <codecalm@gmail.com>2020-03-20 15:14:30 +0100
commitf6373d033e468bade371c856a7fc76f1f7e7565a (patch)
tree7fc56cfc9188d7d4265c70ed8dc83bdb97fdbfd4 /gulpfile.js
parentbuild fix (diff)
downloadtabler-icons-f6373d033e468bade371c856a7fc76f1f7e7565a.tar.xz
sketch, illustrator, figma fixes
temperature icons fix #4
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 24ade26..37f6b22 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -191,6 +191,7 @@ gulp.task('optimize', function (cb) {
.replace(/\s?\/>/g, ' />')
.replace(/\n\s*<(line|circle|path|polyline)/g, "\n <$1")
.replace(/polyline points="([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s([0-9.]+)"/g, 'line x1="$1" y1="$2" x2="$3" y2="$4"')
+ .replace(/a([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s?([0-1])\s?([0-1])\s?(-?[0-9.]+)\s?(-?[0-9.]+)/g, 'a$1 $2 $3 $4 $5 $6 $7')
.replace(/\n\n+/g, "\n");
fs.writeFileSync(file, svgFileContent);