From 6c9e6b3baf925e941cde508b879a403e34d511dd Mon Sep 17 00:00:00 2001 From: Fabian Boehm Date: Wed, 19 Feb 2025 21:47:00 +0100 Subject: [PATCH] functions/help: Fix version number for betas --- share/functions/help.fish | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/share/functions/help.fish b/share/functions/help.fish index ff61143a2..7a1b06f43 100644 --- a/share/functions/help.fish +++ b/share/functions/help.fish @@ -189,7 +189,7 @@ function help --description 'Show help for the fish shell' and set -l chromeos_linux_garcon # Generate the online URL, with one dot in the version string (major.minor) - set -l version_string (string split . -f 1,2 -- $version | string join .) + set -l version_string (string match -rg '(\d+\.\d+(?:b\d+)?).*' -- $version) set -l ext_url https://fishshell.com/docs/$version_string/$fish_help_page set -l page_url if set -q __fish_help_dir[1]; and test -f $__fish_help_dir/index.html; and not set -lq chromeos_linux_garcon