From 20e246c8045c0bad3c29b048ae6a58e5093953cf Mon Sep 17 00:00:00 2001 From: Skjalg Teig Date: Thu, 21 Sep 2023 12:39:21 +0200 Subject: [PATCH] fix: use correct file-prefix for download of expressive variants --- lib/readme.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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] || [])