From a2b135fff01bb0bffb37187d9bc3346e974fd932 Mon Sep 17 00:00:00 2001 From: sam Date: Mon, 22 Dec 2025 20:45:52 -0500 Subject: [PATCH] Add icon `filled/crown` (#1441) * Add new: `filled/crown` * Update icon validation to require '.svg' extension in names and remove tag checks for filled icons, enhancing validation accuracy. --------- Co-authored-by: codecalm --- .build/validate-icons.mjs | 8 +------- icons/filled/crown.svg | 11 +++++++++++ 2 files changed, 12 insertions(+), 7 deletions(-) create mode 100644 icons/filled/crown.svg 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 new file mode 100644 index 000000000..bc6bf2251 --- /dev/null +++ b/icons/filled/crown.svg @@ -0,0 +1,11 @@ + + + +