Skip to content
This repository has been archived by the owner on Nov 2, 2021. It is now read-only.

Commit

Permalink
fix(v2): allow semver to start with a 'v'
Browse files Browse the repository at this point in the history
  • Loading branch information
cedrickring committed Dec 23, 2020
1 parent 0bf4ca8 commit 3290606
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions build/semver
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

set -o errexit -o nounset -o pipefail

SEMVER_REGEX="^(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(\\-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"
SEMVER_REGEX="^v(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)\\.(0|[1-9][0-9]*)(\\-[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?(\\+[0-9A-Za-z-]+(\\.[0-9A-Za-z-]+)*)?$"

PROG=semver
PROG_VERSION=2.1.0
Expand Down Expand Up @@ -76,7 +76,7 @@ function validate-version {
echo "$version"
fi
else
error "version $version does not match the semver scheme 'X.Y.Z(-PRERELEASE)(+BUILD)'. See help for more information."
error "version $version does not match the semver scheme 'vX.Y.Z(-PRERELEASE)(+BUILD)'. See help for more information."
fi
}

Expand Down

0 comments on commit 3290606

Please sign in to comment.