fix: build script

This commit is contained in:
Cory Dransfeldt 2024-10-02 20:35:31 -07:00
parent 919b3717f8
commit 86eaf1ded5
No known key found for this signature in database
4 changed files with 4885 additions and 4885 deletions

View file

@ -13,9 +13,9 @@ try {
fileNames.forEach((filename) => {
const filePath = path.join(ICONS_DIR, filename)
const contents = readFileSync(filePath, 'utf8').trimEnd()
const contents = readFileSync(filePath, 'utf8').trim()
const lines = contents.split('\n')
const guts = lines.slice(1, -1).join('').replace(/\s+/g, '')
const guts = lines.slice(1, -1).join(' ').replace(/\s{2,}/g, ' ')
object[filename.slice(0, -4)] = guts
})