Skip to content

Commit

Permalink
fix: Names can also contain underscore
Browse files Browse the repository at this point in the history
  • Loading branch information
marverix committed Dec 12, 2024
1 parent e00f9be commit ebf2030
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gah
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit ebf2030

Please sign in to comment.