1
0
mirror of https://github.com/tabler/tabler-icons.git synced 2025-09-09 22:00:57 +02:00

Update icon metadata

This commit is contained in:
codecalm
2025-01-29 22:29:40 +01:00
parent d953ab8e07
commit 100369584f
1237 changed files with 1242 additions and 1042 deletions

View File

@@ -3,8 +3,8 @@ import fs from 'fs'
import { resolve, join, basename } from 'path'
import { ICONS_SRC_DIR } from './helpers.mjs'
// const extensions = ['heart', 'star', 'off', 'bolt', 'cancel', 'check', 'cog', 'dollar', 'dot', 'eco', 'edit', 'x', 'plus', 'minus', 'shield', 'up', 'down', 'move', 'link', 'ribbon', 'question', 'exclamation', '2', '3', 'code', 'pause', 'pin', 'search', 'share', 'hand', 'infinity', 'ai']
const extensions = ['off', 'ai', 'spark']
const extensions = ['heart', 'star', 'off', 'bolt', 'cancel', 'check', 'cog', 'dollar', 'dot', 'eco', 'edit', 'x', 'plus', 'minus', 'shield', 'up', 'down', 'move', 'link', 'ribbon', 'question', 'exclamation', '2', '3', 'code', 'pause', 'pin', 'search', 'share', 'hand', 'infinity', 'ai']
//const extensions = ['off', 'ai', 'spark']
extensions.forEach(function (extension) {
@@ -28,10 +28,10 @@ extensions.forEach(function (extension) {
headerContent = headerContent.replace(/\<\!--/, `<!--\ncategory: ${categoryOriginal[1]}`)
}
if (tagsOriginal) {
headerContent = headerContent.replace(/tags: .*\n/, '')
headerContent = headerContent.replace(/\<\!--/, `<!--\ntags: ${tagsOriginal[1]}`)
}
// if (tagsOriginal) {
// headerContent = headerContent.replace(/tags: .*\n/, '')
// headerContent = headerContent.replace(/\<\!--/, `<!--\ntags: ${tagsOriginal[1]}`)
// }
return headerContent
})