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 <codecalm@gmail.com>
This commit is contained in:
parent
a2d526f493
commit
a2b135fff0
|
|
@ -213,7 +213,7 @@ for (const icon of addedIcons) {
|
||||||
error = true
|
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`)
|
console.log(`⛔️ New icon \`${icon}\` has invalid name`)
|
||||||
error = true
|
error = true
|
||||||
}
|
}
|
||||||
|
|
@ -233,12 +233,6 @@ for (const icon of addedIcons) {
|
||||||
error = true
|
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) {
|
} catch (error) {
|
||||||
console.log(`⛔️ New icon \`${icon}\` has invalid metadata`)
|
console.log(`⛔️ New icon \`${icon}\` has invalid metadata`)
|
||||||
error = true
|
error = true
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,11 @@
|
||||||
|
<!--
|
||||||
|
-->
|
||||||
|
<svg
|
||||||
|
xmlns="http://www.w3.org/2000/svg"
|
||||||
|
width="24"
|
||||||
|
height="24"
|
||||||
|
viewBox="0 0 24 24"
|
||||||
|
fill="currentColor"
|
||||||
|
>
|
||||||
|
<path d="M19,19H5c-.5,0-.9-.3-1-.8l-2-10c0-.4.1-.8.5-1.1.4-.2.8-.2,1.1,0l4.1,3.3,3.4-5.1c.4-.6,1.3-.6,1.7,0l3.4,5.1,4.1-3.3c.3-.3.8-.3,1.1,0,.4.2.5.6.5,1.1l-2,10c0,.5-.5.8-1,.8Z" />
|
||||||
|
</svg>
|
||||||
|
After Width: | Height: | Size: 315 B |
Loading…
Reference in New Issue