17 new icons: `info-square-rounded-filled`, `lock-square-rounded-filled`, `square-rounded-arrow-down-filled`, `square-rounded-arrow-left-filled`, `square-rounded-arrow-right-filled`, `square-rounded-arrow-up-filled`, `square-rounded-check-filled`, `square-rounded-chevron-down-filled`, `square-rounded-chevron-left-filled`, `square-rounded-chevron-right-filled`, `square-rounded-chevron-up-filled`, `square-rounded-chevrons-down-filled`, `square-rounded-chevrons-left-filled`, `square-rounded-chevrons-right-filled`, `square-rounded-chevrons-up-filled`, `square-rounded-plus-filled`, `square-rounded-x-filled`

This commit is contained in:
codecalm 2023-02-03 11:51:00 +01:00
parent 7ba03fe580
commit b3e1615beb
1 changed files with 3 additions and 6 deletions

View File

@ -61,9 +61,6 @@ glob(join(ICONS_SRC_DIR, '*.svg'), {}, function(er, files) {
return `<path d="${d2}"`
})
// .replace(/(?<=M[^"]+)"\s+\/>[\n\s\t]+<path d="M(?=([^"]+)"\s+\/>)/g, function() {
// return `M`
// })
.replace(/<path d="([^"]+)"/g, function(f, r1) {
r1 = optimizePath(r1)
@ -86,9 +83,9 @@ glob(join(ICONS_SRC_DIR, '*.svg'), {}, function(er, files) {
return `<path d="${r1}"`
})
if (!svgFileContent.match(/<svg>[\n\t\s]*<path d="([^"]+)"( fill="currentColor")? \/>[\n\t\s]*<\/svg>/)) {
console.log(`Fix ${file}!`);
}
// if (!svgFileContent.match(/<svg>[\n\t\s]*<path d="([^"]+)"( fill="currentColor")? \/>[\n\t\s]*<\/svg>/)) {
// console.log(`Fix ${file}!`);
// }
if (svgFile.toString() !== svgFileContent) {
writeFileSync(file, svgFileContent)