From e8e56e9f234f485e3308826e668540be4c7ced75 Mon Sep 17 00:00:00 2001 From: Justin Fowler Date: Sun, 8 Sep 2024 21:28:59 -0500 Subject: [PATCH] fixed version postfix url removal --- site/src/utils/docs.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/site/src/utils/docs.ts b/site/src/utils/docs.ts index 1a10c3e808ae8..162f94a354544 100644 --- a/site/src/utils/docs.ts +++ b/site/src/utils/docs.ts @@ -9,7 +9,7 @@ function defaultDocsUrl(): string { } // Strip the postfix version info that's not part of the link. - const i = version?.indexOf("-") ?? -1; + const i = version?.match(/[+-]/)?.index ?? -1; if (i >= 0) { version = version.slice(0, i); }