From 235f9e5e2981abb64ecf4b6318917eac0c85ee4a Mon Sep 17 00:00:00 2001 From: codecalm Date: Sun, 17 Apr 2022 21:53:39 +0200 Subject: fix "off" icons --- _import.sh | 2 ++ gulpfile.js | 5 +++-- src/_icons/anchor-off.svg | 2 -- src/_icons/api-off.svg | 2 -- src/_icons/atom-off.svg | 2 -- src/_icons/award-off.svg | 2 -- src/_icons/badge-off.svg | 2 -- src/_icons/badges-off.svg | 2 -- src/_icons/ballon-off.svg | 2 -- src/_icons/barrel-off.svg | 2 -- src/_icons/bath-off.svg | 2 -- src/_icons/bed-off.svg | 2 -- src/_icons/beer-off.svg | 2 -- src/_icons/box-off.svg | 2 -- src/_icons/bucket-off.svg | 2 -- src/_icons/cake-off.svg | 2 -- src/_icons/cash-off.svg | 2 -- src/_icons/coffee-off.svg | 2 -- src/_icons/container-off.svg | 2 -- src/_icons/cpu-off.svg | 2 -- src/_icons/crane-off.svg | 2 -- src/_icons/creative-commons-off.svg | 2 -- src/_icons/cross-off.svg | 2 -- src/_icons/crutches-off.svg | 2 -- src/_icons/cup-off.svg | 2 -- src/_icons/current-location-off.svg | 2 -- src/_icons/cursor-off.svg | 2 -- src/_icons/dental-off.svg | 2 -- src/_icons/device-nintendo-off.svg | 2 -- src/_icons/device-speaker-off.svg | 2 -- src/_icons/devices-pc-off.svg | 2 -- src/_icons/dialpad-off.svg | 2 -- src/_icons/diamond-off.svg | 2 -- src/_icons/directions-off.svg | 2 -- src/_icons/disabled-off.svg | 2 -- src/_icons/disc-off.svg | 2 -- src/_icons/dna-2-off.svg | 2 -- src/_icons/dna-off.svg | 2 -- src/_icons/door-off.svg | 2 -- src/_icons/download-off.svg | 2 -- src/_icons/edit-circle-off.svg | 2 -- src/_icons/edit-off.svg | 2 -- src/_icons/egg-off.svg | 2 -- src/_icons/engine-off.svg | 2 -- src/_icons/error-404-off.svg | 2 -- src/_icons/exchange-off.svg | 2 -- src/_icons/exclamation-mark-off.svg | 2 -- src/_icons/external-link-off.svg | 2 -- src/_icons/eyeglass-off.svg | 2 -- src/_icons/face-mask-off.svg | 2 -- src/_icons/feather-off.svg | 2 -- src/_icons/fence-off.svg | 2 -- src/_icons/fingerprint-off.svg | 2 -- src/_icons/fish-off.svg | 2 -- src/_icons/flag-2-off.svg | 2 -- src/_icons/flag-off.svg | 2 -- src/_icons/flame-off.svg | 2 -- src/_icons/flask-2-off.svg | 2 -- src/_icons/flask-off.svg | 2 -- src/_icons/flower-off.svg | 2 -- 60 files changed, 5 insertions(+), 118 deletions(-) diff --git a/_import.sh b/_import.sh index 3be4ac8d..6b7c1247 100755 --- a/_import.sh +++ b/_import.sh @@ -21,7 +21,9 @@ do sed -i "" 's/xmlns="http:\/\/www.w3.org\/2000\/svg"//g' ${file} sed -i "" 's/"//g' ${file} sed -i "" 's///g' ${file} + sed -i "" 's///g' ${file} sed -i "" 's///g' ${file} + sed -i "" 's///g' ${file} done svgo -f ./new/ --pretty --disable mergePaths diff --git a/gulpfile.js b/gulpfile.js index 5cb1bf57..4a07d75d 100644 --- a/gulpfile.js +++ b/gulpfile.js @@ -54,7 +54,7 @@ if (fs.existsSync('./compile-options.json')) { } }) } - + if (typeof tempOptions.excludeIcons !== "undefined") { if (!Array.isArray(tempOptions.excludeIcons)) { throw "property excludeIcons is not an array" @@ -509,6 +509,7 @@ gulp.task('optimize', function (cb) { svgFileContent = svgFileContent .replace(/><\/(polyline|line|rect|circle|path)>/g, '/>') .replace(/rx="([^"]+)"\s+ry="\1"/g, 'rx="$1"') + .replace(/]+)?\/>/g, '') .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"') @@ -519,7 +520,7 @@ gulp.task('optimize', function (cb) { }) .replace(/d="m/g, 'd="M') .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(/\n\s+\n+/g, "\n") .replace(/ - - diff --git a/src/_icons/api-off.svg b/src/_icons/api-off.svg index 69101bfd..db93b834 100644 --- a/src/_icons/api-off.svg +++ b/src/_icons/api-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/atom-off.svg b/src/_icons/atom-off.svg index 609a6be6..d8016cac 100644 --- a/src/_icons/atom-off.svg +++ b/src/_icons/atom-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/award-off.svg b/src/_icons/award-off.svg index c265f5e3..4a4589ae 100644 --- a/src/_icons/award-off.svg +++ b/src/_icons/award-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/badge-off.svg b/src/_icons/badge-off.svg index 35725d27..b6a97287 100644 --- a/src/_icons/badge-off.svg +++ b/src/_icons/badge-off.svg @@ -3,6 +3,4 @@ - - diff --git a/src/_icons/badges-off.svg b/src/_icons/badges-off.svg index db3e2612..17c4f1c0 100644 --- a/src/_icons/badges-off.svg +++ b/src/_icons/badges-off.svg @@ -4,6 +4,4 @@ - - diff --git a/src/_icons/ballon-off.svg b/src/_icons/ballon-off.svg index c652b917..eb934d01 100644 --- a/src/_icons/ballon-off.svg +++ b/src/_icons/ballon-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/barrel-off.svg b/src/_icons/barrel-off.svg index 5efbc913..7ea313d0 100644 --- a/src/_icons/barrel-off.svg +++ b/src/_icons/barrel-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/bath-off.svg b/src/_icons/bath-off.svg index 68fcf9fa..5bc7750e 100644 --- a/src/_icons/bath-off.svg +++ b/src/_icons/bath-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/bed-off.svg b/src/_icons/bed-off.svg index 4414d6f2..0d16a235 100644 --- a/src/_icons/bed-off.svg +++ b/src/_icons/bed-off.svg @@ -8,6 +8,4 @@ - - diff --git a/src/_icons/beer-off.svg b/src/_icons/beer-off.svg index f5d225ad..e47b8698 100644 --- a/src/_icons/beer-off.svg +++ b/src/_icons/beer-off.svg @@ -4,6 +4,4 @@ - - diff --git a/src/_icons/box-off.svg b/src/_icons/box-off.svg index 98b90900..dc77ab61 100644 --- a/src/_icons/box-off.svg +++ b/src/_icons/box-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/bucket-off.svg b/src/_icons/bucket-off.svg index 11ee19dd..79555633 100644 --- a/src/_icons/bucket-off.svg +++ b/src/_icons/bucket-off.svg @@ -4,6 +4,4 @@ - - diff --git a/src/_icons/cake-off.svg b/src/_icons/cake-off.svg index 5713dbd3..29de262b 100644 --- a/src/_icons/cake-off.svg +++ b/src/_icons/cake-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/cash-off.svg b/src/_icons/cash-off.svg index 5bfd3095..ab09987d 100644 --- a/src/_icons/cash-off.svg +++ b/src/_icons/cash-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/coffee-off.svg b/src/_icons/coffee-off.svg index 4e7556d6..17019137 100644 --- a/src/_icons/coffee-off.svg +++ b/src/_icons/coffee-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/container-off.svg b/src/_icons/container-off.svg index fbb1bd4a..a44b6ece 100644 --- a/src/_icons/container-off.svg +++ b/src/_icons/container-off.svg @@ -13,6 +13,4 @@ - - diff --git a/src/_icons/cpu-off.svg b/src/_icons/cpu-off.svg index fdc6fef2..1485f2cd 100644 --- a/src/_icons/cpu-off.svg +++ b/src/_icons/cpu-off.svg @@ -12,6 +12,4 @@ - - diff --git a/src/_icons/crane-off.svg b/src/_icons/crane-off.svg index a6eb8cf3..1d0f1d1c 100644 --- a/src/_icons/crane-off.svg +++ b/src/_icons/crane-off.svg @@ -9,6 +9,4 @@ - - diff --git a/src/_icons/creative-commons-off.svg b/src/_icons/creative-commons-off.svg index 40abcf3e..1e6091f3 100644 --- a/src/_icons/creative-commons-off.svg +++ b/src/_icons/creative-commons-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/cross-off.svg b/src/_icons/cross-off.svg index 2e3d65c2..338b9225 100644 --- a/src/_icons/cross-off.svg +++ b/src/_icons/cross-off.svg @@ -3,6 +3,4 @@ - - diff --git a/src/_icons/crutches-off.svg b/src/_icons/crutches-off.svg index bb020c81..410c3796 100644 --- a/src/_icons/crutches-off.svg +++ b/src/_icons/crutches-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/cup-off.svg b/src/_icons/cup-off.svg index 7e34fb48..bea2a700 100644 --- a/src/_icons/cup-off.svg +++ b/src/_icons/cup-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/current-location-off.svg b/src/_icons/current-location-off.svg index a005552f..dc632e2b 100644 --- a/src/_icons/current-location-off.svg +++ b/src/_icons/current-location-off.svg @@ -8,6 +8,4 @@ - - diff --git a/src/_icons/cursor-off.svg b/src/_icons/cursor-off.svg index f7475cfd..df06ac99 100644 --- a/src/_icons/cursor-off.svg +++ b/src/_icons/cursor-off.svg @@ -4,6 +4,4 @@ - - diff --git a/src/_icons/dental-off.svg b/src/_icons/dental-off.svg index 308bbf29..5038c722 100644 --- a/src/_icons/dental-off.svg +++ b/src/_icons/dental-off.svg @@ -4,6 +4,4 @@ - - diff --git a/src/_icons/device-nintendo-off.svg b/src/_icons/device-nintendo-off.svg index c5565ff3..7bbd8a44 100644 --- a/src/_icons/device-nintendo-off.svg +++ b/src/_icons/device-nintendo-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/device-speaker-off.svg b/src/_icons/device-speaker-off.svg index 44b82143..5265009c 100644 --- a/src/_icons/device-speaker-off.svg +++ b/src/_icons/device-speaker-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/devices-pc-off.svg b/src/_icons/devices-pc-off.svg index 44b9f37e..e2919e60 100644 --- a/src/_icons/devices-pc-off.svg +++ b/src/_icons/devices-pc-off.svg @@ -8,6 +8,4 @@ - - diff --git a/src/_icons/dialpad-off.svg b/src/_icons/dialpad-off.svg index 6a8d18b7..8e759dbe 100644 --- a/src/_icons/dialpad-off.svg +++ b/src/_icons/dialpad-off.svg @@ -9,6 +9,4 @@ - - diff --git a/src/_icons/diamond-off.svg b/src/_icons/diamond-off.svg index 93e4b2a8..0cf26a98 100644 --- a/src/_icons/diamond-off.svg +++ b/src/_icons/diamond-off.svg @@ -4,6 +4,4 @@ - - diff --git a/src/_icons/directions-off.svg b/src/_icons/directions-off.svg index 65f97a0c..3e98a27b 100644 --- a/src/_icons/directions-off.svg +++ b/src/_icons/directions-off.svg @@ -8,6 +8,4 @@ - - diff --git a/src/_icons/disabled-off.svg b/src/_icons/disabled-off.svg index 32805da6..02bd6181 100644 --- a/src/_icons/disabled-off.svg +++ b/src/_icons/disabled-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/disc-off.svg b/src/_icons/disc-off.svg index 4120c060..89763da1 100644 --- a/src/_icons/disc-off.svg +++ b/src/_icons/disc-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/dna-2-off.svg b/src/_icons/dna-2-off.svg index d81bd5c3..a194f109 100644 --- a/src/_icons/dna-2-off.svg +++ b/src/_icons/dna-2-off.svg @@ -8,6 +8,4 @@ - - diff --git a/src/_icons/dna-off.svg b/src/_icons/dna-off.svg index 5191a2b2..574981bf 100644 --- a/src/_icons/dna-off.svg +++ b/src/_icons/dna-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/door-off.svg b/src/_icons/door-off.svg index 58afbcc0..b771f6cf 100644 --- a/src/_icons/door-off.svg +++ b/src/_icons/door-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/download-off.svg b/src/_icons/download-off.svg index e49248cc..15b03314 100644 --- a/src/_icons/download-off.svg +++ b/src/_icons/download-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/edit-circle-off.svg b/src/_icons/edit-circle-off.svg index 2c0045cf..716bb6c9 100644 --- a/src/_icons/edit-circle-off.svg +++ b/src/_icons/edit-circle-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/edit-off.svg b/src/_icons/edit-off.svg index bbd24189..2fc88fbd 100644 --- a/src/_icons/edit-off.svg +++ b/src/_icons/edit-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/egg-off.svg b/src/_icons/egg-off.svg index dc5313c6..d2c904eb 100644 --- a/src/_icons/egg-off.svg +++ b/src/_icons/egg-off.svg @@ -3,6 +3,4 @@ - - diff --git a/src/_icons/engine-off.svg b/src/_icons/engine-off.svg index fabd0dc6..c8a009df 100644 --- a/src/_icons/engine-off.svg +++ b/src/_icons/engine-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/error-404-off.svg b/src/_icons/error-404-off.svg index 2b4d781f..16a4711f 100644 --- a/src/_icons/error-404-off.svg +++ b/src/_icons/error-404-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/exchange-off.svg b/src/_icons/exchange-off.svg index af66c4d6..ba426381 100644 --- a/src/_icons/exchange-off.svg +++ b/src/_icons/exchange-off.svg @@ -8,6 +8,4 @@ - - diff --git a/src/_icons/exclamation-mark-off.svg b/src/_icons/exclamation-mark-off.svg index f5f06c16..096a8bee 100644 --- a/src/_icons/exclamation-mark-off.svg +++ b/src/_icons/exclamation-mark-off.svg @@ -4,6 +4,4 @@ - - diff --git a/src/_icons/external-link-off.svg b/src/_icons/external-link-off.svg index a7604dcf..63e5f83e 100644 --- a/src/_icons/external-link-off.svg +++ b/src/_icons/external-link-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/eyeglass-off.svg b/src/_icons/eyeglass-off.svg index 76c21494..f77546f1 100644 --- a/src/_icons/eyeglass-off.svg +++ b/src/_icons/eyeglass-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/face-mask-off.svg b/src/_icons/face-mask-off.svg index 62de4d1f..0db86fa7 100644 --- a/src/_icons/face-mask-off.svg +++ b/src/_icons/face-mask-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/feather-off.svg b/src/_icons/feather-off.svg index 2f107bb1..63a5f42b 100644 --- a/src/_icons/feather-off.svg +++ b/src/_icons/feather-off.svg @@ -9,6 +9,4 @@ - - diff --git a/src/_icons/fence-off.svg b/src/_icons/fence-off.svg index 9d096aaa..35293e1f 100644 --- a/src/_icons/fence-off.svg +++ b/src/_icons/fence-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/fingerprint-off.svg b/src/_icons/fingerprint-off.svg index 3e1f0404..aed04b4c 100644 --- a/src/_icons/fingerprint-off.svg +++ b/src/_icons/fingerprint-off.svg @@ -7,6 +7,4 @@ - - diff --git a/src/_icons/fish-off.svg b/src/_icons/fish-off.svg index 13cf38aa..0cb1bb4c 100644 --- a/src/_icons/fish-off.svg +++ b/src/_icons/fish-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/flag-2-off.svg b/src/_icons/flag-2-off.svg index 745ee706..ce112aaf 100644 --- a/src/_icons/flag-2-off.svg +++ b/src/_icons/flag-2-off.svg @@ -3,6 +3,4 @@ - - diff --git a/src/_icons/flag-off.svg b/src/_icons/flag-off.svg index 66315469..5b685066 100644 --- a/src/_icons/flag-off.svg +++ b/src/_icons/flag-off.svg @@ -6,6 +6,4 @@ - - diff --git a/src/_icons/flame-off.svg b/src/_icons/flame-off.svg index 1afe2939..af8b27ec 100644 --- a/src/_icons/flame-off.svg +++ b/src/_icons/flame-off.svg @@ -3,6 +3,4 @@ - - diff --git a/src/_icons/flask-2-off.svg b/src/_icons/flask-2-off.svg index 66c39b47..16ca37e3 100644 --- a/src/_icons/flask-2-off.svg +++ b/src/_icons/flask-2-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/flask-off.svg b/src/_icons/flask-off.svg index e11383eb..a45ba2ba 100644 --- a/src/_icons/flask-off.svg +++ b/src/_icons/flask-off.svg @@ -5,6 +5,4 @@ - - diff --git a/src/_icons/flower-off.svg b/src/_icons/flower-off.svg index 9d0bdac0..95654196 100644 --- a/src/_icons/flower-off.svg +++ b/src/_icons/flower-off.svg @@ -4,6 +4,4 @@ - - -- cgit v1.2.1