From f5f8421bc33d50ab810b502fcfcd33e865e1bf93 Mon Sep 17 00:00:00 2001 From: dfeldick Date: Tue, 7 May 2024 15:38:42 -0700 Subject: [PATCH] APIGOV-27843 - fix regex pattern --- release.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/release.sh b/release.sh index f5a8d8e..88ffde9 100755 --- a/release.sh +++ b/release.sh @@ -20,14 +20,14 @@ check_required_variables() { [ -z "${TAG}" ] && echo "TAG variable not set" && exit 1 [ -z "${SDK}" ] && echo "SDK variable not set" && exit 1 - pat='[0-9]+\.[0-9]+\.[0-9]' + pat='[0-9]+\.[0-9]+\.[0-9]+' if [[ ! ${TAG} =~ $pat ]]; then echo "TAG variable must be of the form X.X.X" exit 1 fi # don't post if this is a pre-release tag - pat='[0-9]+\.[0-9]+\.[0-9]-' + pat='[0-9]+\.[0-9]+\.[0-9]+-' if [[ ${TAG} =~ $pat ]]; then echo "This is an interim release... post to Teams skipped" return 0