From 6cb2544494c18aea6a5203cb3c6f46fe67e42db4 Mon Sep 17 00:00:00 2001 From: Jonas Gunz Date: Fri, 21 Aug 2020 11:59:11 +0200 Subject: allow '-' in repo name --- gitwrapper.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gitwrapper.sh') diff --git a/gitwrapper.sh b/gitwrapper.sh index 594b326..f4907fd 100755 --- a/gitwrapper.sh +++ b/gitwrapper.sh @@ -46,7 +46,7 @@ function has_access() { return 1 fi - readonly reponame_regex='^\w+\.git$' + readonly reponame_regex='^[A-Za-z0-9_\-]+\.git$' if [[ ! "$(basename "$1")" =~ $reponame_regex ]]; then perror "Invalid repository" return 1 -- cgit v1.2.3