Skip to content

Commit

Permalink
fix #22: make numeric increment of pre release versions optional
Browse files Browse the repository at this point in the history
  • Loading branch information
christian-draeger authored Dec 17, 2024
1 parent 7c3791f commit e336aa9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ main() {
major=0; minor=0; patch=0; pre=""; preversion=0

# break down the version number into it's components
regex="^v?([0-9]+).([0-9]+).([0-9]+)((-[a-z]+).?([0-9]+))?$"
regex="^v?([0-9]+)\.([0-9]+)\.([0-9]+)(-([a-z]+)(\.[0-9]+)?)?$"
if [[ $prev_version =~ $regex ]]; then
major="${BASH_REMATCH[1]}"
minor="${BASH_REMATCH[2]}"
Expand Down

0 comments on commit e336aa9

Please sign in to comment.