From ebf20307f39284d747a8e1e2c1f537201083439c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Sieroci=C5=84ski?= Date: Thu, 12 Dec 2024 16:58:51 +0100 Subject: [PATCH] fix: Names can also contain underscore --- gah | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gah b/gah index b80fb44..d652ab8 100755 --- a/gah +++ b/gah @@ -11,7 +11,7 @@ set -e #-------------------------------------------------- #region Constants -VERSION="0.2.1" +VERSION="0.2.2" HELP_STRING="Type 'gah help' to show help." GAH_CACHE_DIR="$HOME/.cache/gah" @@ -102,7 +102,7 @@ function get_arch_regexp_part() { } function get_filename_regexp() { - local name_regexp_part='[a-z][a-z0-9-]+?' + local name_regexp_part='[a-z][a-z0-9_-]+?' local version_regexp_part='([_-]v?[0-9]+\.[0-9]+\.[0-9]+)?' local os_regexp_part=$(get_os_regexp_part) local arch_regexp_part=$(get_arch_regexp_part)