diff options
-rw-r--r-- | gulpfile.js | 6 | ||||
-rw-r--r-- | src/_icons/mars.svg | 9 | ||||
-rw-r--r-- | src/_icons/venus.svg | 8 |
3 files changed, 20 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}"`; }); diff --git a/src/_icons/mars.svg b/src/_icons/mars.svg new file mode 100644 index 00000000..6b2478b9 --- /dev/null +++ b/src/_icons/mars.svg @@ -0,0 +1,9 @@ +--- +category: Symbols +--- +<svg> + <circle cx="10" cy="14" r="5" /> + <line x1="19" y1="5" x2="13.6" y2="10.4" /> + <path d="M19 5h-5" /> + <line x1="19" y1="5" x2="19" y2="10" /> +</svg> diff --git a/src/_icons/venus.svg b/src/_icons/venus.svg new file mode 100644 index 00000000..ed953b84 --- /dev/null +++ b/src/_icons/venus.svg @@ -0,0 +1,8 @@ +--- +category: Symbols +--- +<svg> + <circle cx="12" cy="9" r="5" /> + <line x1="12" y1="14" x2="12" y2="21" /> + <line x1="9" y1="18" x2="15" y2="18" /> +</svg> |