From 04b0c5428da39af4f5e96394f5adb82734888b79 Mon Sep 17 00:00:00 2001 From: Anton Nesterov Date: Sat, 11 Feb 2023 16:06:20 +0300 Subject: [PATCH] fix: github tag including '@' --- mod.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod.ts b/mod.ts index ea1a7c4..43769bf 100644 --- a/mod.ts +++ b/mod.ts @@ -69,14 +69,14 @@ function asReadable$(entry: ConfigEntry): ReadableEntry { break; } case "github": { - const [repo, version] = entry.source.split("@"); + const [repo, ...version] = entry.source.split("@"); if (!version) { throw new Error( - `Invalid source format: ${entry.source} + `Invalid source format: ${entry.source} Expected: @`, ); } - read = () => githubPick({ repo, version, pick }); + read = () => githubPick({ repo, version: version.join(""), pick }); break; } default: {