functions/help: Fix version number for betas

This commit is contained in:
Fabian Boehm
2025-02-19 21:47:00 +01:00
parent afbdb9f268
commit 6c9e6b3baf

View File

@@ -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