Skip to content

Commit

Permalink
Update release version regex
Browse files Browse the repository at this point in the history
Signed-off-by: Nathan LeClaire <[email protected]>
  • Loading branch information
nathanleclaire committed Feb 27, 2017
1 parent 6388242 commit 6b7aef1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion script/release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ if [[ -z "${VERSION}" ]]; then
exit 1
fi

if [[ ! "${VERSION}" =~ ^[0-9]\.[0-9](\.[0-9])?(-rc[1-9][0-9]*)?$ ]]; then
if [[ ! "${VERSION}" =~ ^[0-9]\.[0-9]+(\.[0-9])+(-rc[1-9][0-9]*)?$ ]]; then
echo "Invalid version. It should look like 0.5.1, 0.6 or 0.5.1-rc2"
exit 1
fi
Expand Down

0 comments on commit 6b7aef1

Please sign in to comment.