aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-03-22 16:48:09 +0100
committercodecalm <codecalm@gmail.com>2020-03-22 16:48:09 +0100
commit50b07ba577243cfe941746402e0195121133b6b7 (patch)
tree1edb33b93ab79f26d8bf55f95536ce7d6616c092 /gulpfile.js
parentgulp changelog generate, new icons (diff)
parentMerge branches 'dev' and 'master' of https://github.com/tabler/tabler-icons i... (diff)
downloadtabler-icons-50b07ba577243cfe941746402e0195121133b6b7.tar.xz
Merge branches 'dev' and 'master' of https://github.com/tabler/tabler-icons
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/gulpfile.js b/gulpfile.js
index 3de333d..ad52486 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -271,7 +271,7 @@ gulp.task('optimize', function (cb) {
.replace(/\s?\/>/g, ' />')
.replace(/\n\s*<(line|circle|path|polyline|rect)/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(/a\s?([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);