aboutsummaryrefslogtreecommitdiff
path: root/gulpfile.js
diff options
context:
space:
mode:
authorcodecalm <codecalm@gmail.com>2020-08-21 18:24:45 +0200
committercodecalm <codecalm@gmail.com>2020-08-21 18:24:45 +0200
commitb8963b92352114a9846e6c5d4ef9ab5eb50ebed8 (patch)
tree46fcedf8a3e90346dd47be5b71f82122d17fe747 /gulpfile.js
parentRelease 1.13.1 (diff)
parent`page-break` icon (diff)
downloadtabler-icons-b8963b92352114a9846e6c5d4ef9ab5eb50ebed8.tar.xz
Merge branches 'dev' and 'master' of https://github.com/tabler/tabler-icons
Diffstat (limited to 'gulpfile.js')
-rw-r--r--gulpfile.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/gulpfile.js b/gulpfile.js
index c003943f..de440fcc 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -418,13 +418,13 @@ gulp.task('optimize', function (cb) {
.replace(/([Aa])\s?([0-9.]+)\s([0-9.]+)\s([0-9.]+)\s?([0-1])\s?([0-1])\s?(-?[0-9.]+)\s?(-?[0-9.]+)/gi, '$1$2 $3 $4 $5 $6 $7 $8')
.replace(/\n\n+/g, "\n")
- .replace(/<path d="M([0-9.]*) ([0-9.]*)l([-0-9.]*) ([-0-9.]*)"/g, function(f, r1, r2, r3, r4){
+ .replace(/<path d="M([0-9.]*) ([0-9.]*)l\s?([-0-9.]*) ([-0-9.]*)"/g, function(f, r1, r2, r3, r4){
return `<line x1="${r1}" y1="${r2}" x2="${addFloats(r1, r3)}" y2="${addFloats(r2, r4)}"`;
})
- .replace(/<path d="M([0-9.]*) ([0-9.]*)v([0-9.]*)"/g, function(f, r1, r2, r3){
+ .replace(/<path d="M([0-9.]*) ([0-9.]*)v\s?([0-9.]*)"/g, function(f, r1, r2, r3){
return `<line x1="${r1}" y1="${r2}" x2="${r1}" y2="${addFloats(r2, r3)}"`;
})
- .replace(/<path d="M([0-9.]*) ([0-9.]*)h([0-9.]*)"/g, function(f, r1, r2, r3){
+ .replace(/<path d="M([0-9.]*) ([0-9.]*)h\s?([0-9.]*)"/g, function(f, r1, r2, r3){
return `<line x1="${r1}" y1="${r2}" x2="${addFloats(r1, r3)}" y2="${r2}"`;
});