From c27b9505342c615189d0bb6655fff9013dac5946 Mon Sep 17 00:00:00 2001 From: Rafael Almeida Date: Tue, 16 Apr 2024 09:14:13 +0100 Subject: [PATCH] DEVOPS-00 Allow 0-9 pattern (#5) --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 075f583..e2e83c7 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -3,6 +3,6 @@ set -e # When updating this RegEx, please, keep in mind that Bash only supports POSIX. I.e.: Bash doesn't support \d, so you need to explicitly use [0-9] or [[:digit:]] -echo "$1" | grep -oE '^((fix|feature|breaking-change)(\/))?([A-Z1-9]*-[^-]*[[:digit:]])-?.*' - +echo "$1" | grep -oE '^((fix|feature|breaking-change)(\/))?([A-Z0-9]*-[^-]*[[:digit:]])-?.*' - [ $? -eq 0 ] && exit 0 || exit 1