Skip to content

Commit

Permalink
fix (Laerdal.CreateNewReleaseInGithub.sh): make the tag-format valida…
Browse files Browse the repository at this point in the history
…tor accept versions with 4 fields (1.2.3.4) instead of just 3 (1.2.3)
  • Loading branch information
ksidirop-laerdal committed Nov 12, 2024
1 parent 1972832 commit 2bfd5e0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Laerdal.Scripts/Laerdal.CreateNewReleaseInGithub.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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'"
Expand Down

0 comments on commit 2bfd5e0

Please sign in to comment.