mirror of
https://github.com/tabler/tabler-icons.git
synced 2025-08-17 03:24:04 +02:00
check-unicodes script
This commit is contained in:
@@ -15,8 +15,6 @@ glob(path.join(ICONS_SRC_DIR, '*.svg'), {}, function(er, files) {
|
|||||||
if (matches[1]) {
|
if (matches[1]) {
|
||||||
const unicode = matches[1]
|
const unicode = matches[1]
|
||||||
|
|
||||||
console.log('unicode', unicode, unicodes.indexOf(unicode));
|
|
||||||
|
|
||||||
if (unicode && unicodes.indexOf(unicode) === -1) {
|
if (unicode && unicodes.indexOf(unicode) === -1) {
|
||||||
unicodes.push(unicode)
|
unicodes.push(unicode)
|
||||||
} else {
|
} else {
|
||||||
@@ -26,9 +24,6 @@ glob(path.join(ICONS_SRC_DIR, '*.svg'), {}, function(er, files) {
|
|||||||
throw new Error(`Icon ${file} don't have a unicode!`)
|
throw new Error(`Icon ${file} don't have a unicode!`)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
console.log('unicodes', unicodes);
|
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user