1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-01-17 04:38:28 +01:00

validation fixes

This commit is contained in:
codecalm 2024-04-11 12:20:26 +02:00
parent 2f1b5cc3be
commit d907b20bdf
3 changed files with 7 additions and 9 deletions

View File

@ -53,18 +53,18 @@ types.forEach(type => {
error = true error = true
} }
// check duplicates in tags
if (duplicateExists(data.tags || [])) {
console.log(`⛔️ Icon \`${iconName}\` has duplicate tags`)
error = true
}
unicodes.push(data.unicode) unicodes.push(data.unicode)
} else if (argvs.hard) { } else if (argvs.hard) {
console.log(`⛔️ Icon \`${iconName}\` has no unicode`) console.log(`⛔️ Icon \`${iconName}\` has no unicode`)
error = true error = true
} }
// check duplicates in tags
if (duplicateExists(data.tags || [])) {
console.log(`⛔️ Icon \`${iconName}\` has duplicate tags`)
error = true
}
if (argvs.hard && !data.version) { if (argvs.hard && !data.version) {
console.log(`⛔️ Icon \`${iconName}\` has no version`) console.log(`⛔️ Icon \`${iconName}\` has no version`)
error = true error = true

View File

@ -1,6 +1,4 @@
<!-- <!--
category: Communication
tags: [comment, chat, reply, communication, conversation, faq, message, text]
--> -->
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 728 B

After

Width:  |  Height:  |  Size: 626 B

View File

@ -1,6 +1,6 @@
<!-- <!--
category: Maps category: Maps
tags: [playground, park, monkey, bar, jungle, gym, exercise, fitness, outdoor, fun, children, kids, play, swing, jungle gym, jungle gym] tags: [playground, park, monkey, bar, jungle, gym, exercise, fitness, outdoor, fun, children, kids, play, swing, jungle gym]
--> -->
<svg <svg
xmlns="http://www.w3.org/2000/svg" xmlns="http://www.w3.org/2000/svg"

Before

Width:  |  Height:  |  Size: 523 B

After

Width:  |  Height:  |  Size: 511 B