We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3e84b5c commit 661c2daCopy full SHA for 661c2da
update-version.sh
@@ -13,9 +13,9 @@ fi
13
version="$1"
14
message="$2"
15
16
-# Validate version format (simple check for a.b.c or a.b.c-*)
17
-if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+(-[A-Za-z0-9._]+)?$ ]]; then
18
- echo "Warning: Version '$version' does not match the standard format a.b.c or a.b.c-suffix."
+# Validate version format (strictly a.b.c)
+if [[ ! "$version" =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
+ echo "Warning: Version '$version' does not match the standard format a.b.c."
19
echo "Please validate the version number manually."
20
read -p "Do you want to continue? [y/N]: " confirm
21
if [[ ! "$confirm" =~ ^[Yy]$ ]]; then
0 commit comments