From 93489bcff842e588783e237acf2d58163f9efe1b Mon Sep 17 00:00:00 2001 From: TellowKrinkle <3315070+TellowKrinkle@users.noreply.github.com> Date: Sat, 28 Jan 2023 16:35:37 -0600 Subject: [PATCH] Properly parse `.tar.gz` assets Removes all extensions instead of just the last one before getting the component list --- models/ReleaseCache.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/models/ReleaseCache.ts b/models/ReleaseCache.ts index ee09934..eeaad59 100644 --- a/models/ReleaseCache.ts +++ b/models/ReleaseCache.ts @@ -156,7 +156,7 @@ function gatherReleaseAssets( for (let i = 0; i < release.assets.length; i++) { const asset = release.assets[i]; - const assetComponents = path.parse(asset.name).name.split("-"); + const assetComponents = path.parse(asset.name).name.replace(/\.[.a-zA-Z]+$/, "").split("-"); if (assetComponents.length < 3) { log.warn("invalid release asset naming", { isLegacy: legacy,