Skip to content

Commit 6248af7

Browse files
committed
fix: Escape slash for perl
1 parent cebe937 commit 6248af7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gah

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -679,7 +679,7 @@ function main() {
679679
throw_error 1 "Please provide either repo in format 'owner/repo_name' or known alias.\n$HELP_STRING"
680680

681681
elif [[ "$2" == *"/"* ]]; then
682-
if regex_match "$2" "^[a-zA-Z0-9_-]+/[a-zA-Z0-9_-]+$"; then
682+
if regex_match "$2" "^[a-zA-Z0-9_-]+\/[a-zA-Z0-9_-]+$"; then
683683
repo="$2"
684684
else
685685
throw_error 2 "Given string '$2' is not in format 'owner/repo_name'.\n$HELP_STRING"

0 commit comments

Comments
 (0)