Update new_version regex in release script
@@ -53,7 +53,7 @@ parse_args_and_release() {
--new-version)
new_version="$2"
- if [[ ! "$new_version" =~ [0-9]\.[0-9]\.[0-9](-beta[0-9])?(-post)? ]]; then
+ if [[ ! "$new_version" =~ [0-9]+\.[0-9]+\.[0-9]+(-beta[0-9]+)?(-post)? ]]; then
echo "Version $new_version is in an unexpected format" >&2
exit 1
fi
