From b637a86c9622c2f19e67b7489b675a2bfeca4682 Mon Sep 17 00:00:00 2001 From: codecalm Date: Tue, 23 Dec 2025 02:42:47 +0100 Subject: [PATCH] Update icon validation to require '.svg' extension in names and remove tag checks for filled icons, enhancing validation accuracy. --- .build/validate-icons.mjs | 8 +------- icons/filled/crown.svg | 2 -- 2 files changed, 1 insertion(+), 9 deletions(-) diff --git a/.build/validate-icons.mjs b/.build/validate-icons.mjs index f5cb0d057..8f618bf25 100644 --- a/.build/validate-icons.mjs +++ b/.build/validate-icons.mjs @@ -213,7 +213,7 @@ for (const icon of addedIcons) { error = true } - if (!icon.match(/^(outline|filled)\/[a-z0-9-]+$/)) { + if (!icon.match(/^(outline|filled)\/[a-z0-9-]+\.svg$/)) { console.log(`⛔️ New icon \`${icon}\` has invalid name`) error = true } @@ -233,12 +233,6 @@ for (const icon of addedIcons) { error = true } } - - // check if filled icon has tags - if (icon.match(/^filled\//) && data.tags) { - console.log(`⛔️ New icon \`${icon}\` has tags, but should not have it`) - error = true - } } catch (error) { console.log(`⛔️ New icon \`${icon}\` has invalid metadata`) error = true diff --git a/icons/filled/crown.svg b/icons/filled/crown.svg index dffd32f35..bc6bf2251 100644 --- a/icons/filled/crown.svg +++ b/icons/filled/crown.svg @@ -1,6 +1,4 @@