1
0
mirror of https://github.com/coreui/coreui-icons.git synced 2025-01-17 12:48:22 +01:00

fix: remove double prefixes

This commit is contained in:
mrholek 2019-11-19 15:14:33 +01:00
parent c1db40b481
commit 6925cc7401

View File

@ -36,7 +36,7 @@ mkdirp('sprites/', function(err) {
const computedContent = content.replace(/(<svg([^>]+)>)|(<\/svg>)/ig, '')
.replace(/\n/g, '').replace(/"/g, '\'')
.replace('<!-- Generated by IcoMoon.io -->', '')
symbol = `<symbol id="${prefixes[setName]}${svg.replace('.svg', '').toLowerCase()}" viewBox="${viewBox}">\n${computedContent}\n</symbol>`
symbol = `<symbol id="${svg.replace('.svg', '').toLowerCase()}" viewBox="${viewBox}">\n${computedContent}\n</symbol>`
idx === svgs.length - 1 ? symbols.push(symbol) : symbols.push(`${symbol}\n`)
})
fs.writeFile(