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:
@@ -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
|
||||
})
|
||||
|
Reference in New Issue
Block a user