diff --git a/lib/readme.js b/lib/readme.js index 7ab832d4..d0efdf6f 100644 --- a/lib/readme.js +++ b/lib/readme.js @@ -12,7 +12,12 @@ setTimeout(function () { for (const icon of icons) { const type = icon.id.slice(4).split('-')[0] // Without nrk- and state const isPreview = icon.id.includes('-preview') - const filePrefix = type === 'logo' || type === 'expressive' ? type : 'icon' + const isExpressive = icon.id.includes('-expressive') + const filePrefix = type === 'logo' + ? type + : isExpressive + ? 'expressive' + : 'icon' const size = icon.viewBox.baseVal const group = isPreview ? GROUPS.preview : (GROUPS[type] = GROUPS[type] || [])