From 2bfd5e0fb927609ab0fdd19c7b6dea7bed69d49f Mon Sep 17 00:00:00 2001 From: Kyriakos Sidiropoulos Date: Tue, 12 Nov 2024 17:48:21 +0100 Subject: [PATCH] fix (Laerdal.CreateNewReleaseInGithub.sh): make the tag-format validator accept versions with 4 fields (1.2.3.4) instead of just 3 (1.2.3) --- Laerdal.Scripts/Laerdal.CreateNewReleaseInGithub.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Laerdal.Scripts/Laerdal.CreateNewReleaseInGithub.sh b/Laerdal.Scripts/Laerdal.CreateNewReleaseInGithub.sh index ffd8950..d293e22 100644 --- a/Laerdal.Scripts/Laerdal.CreateNewReleaseInGithub.sh +++ b/Laerdal.Scripts/Laerdal.CreateNewReleaseInGithub.sh @@ -68,7 +68,7 @@ function parse_arguments() { function validate_tag_format() { local -r tag="$1" - local -r pattern='^[0-9]+\.[0-9]+(\.[0-9]+)?$' + local -r pattern='^[0-9]+\.[0-9]+(\.[0-9]+)?(\.[0-9]+)?$' if ! [[ $tag =~ $pattern ]]; then exit_with_error "Tag format is invalid: '$tag'"