Permalink
Browse files

Update release version regex

Signed-off-by: Nathan LeClaire <nathan.leclaire@gmail.com>
  • Loading branch information...
nathanleclaire committed Feb 27, 2017
1 parent 6388242 commit 6b7aef14d2979622f1534762699c4fa010cd8b60
Showing with 1 addition and 1 deletion.
  1. +1 −1 script/release.sh
View
@@ -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

0 comments on commit 6b7aef1

Please sign in to comment.