From ce49a0835b673b661f9de478de3e9d3e0a8165b4 Mon Sep 17 00:00:00 2001 From: Lukas Rothenberger Date: Wed, 27 Sep 2023 13:35:53 +0200 Subject: [PATCH] fix(ci)[commit-msg hook]: updated regex pattern --- scripts/dev/check-commit-msg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/dev/check-commit-msg.py b/scripts/dev/check-commit-msg.py index 43d547212..f718c1123 100644 --- a/scripts/dev/check-commit-msg.py +++ b/scripts/dev/check-commit-msg.py @@ -19,7 +19,7 @@ commit_msg = f.read() commit_msg = commit_msg.replace("\n", "") -pattern = re.compile("^(feat|fix|test|chore|wip)(\(\S+\))?(\[\S+\])?:.+$") +pattern = re.compile("^(feat|fix|test|chore|wip)(\(.+\))?(\[.+\])?:.+$") matches = bool(pattern.match(commit_msg)) if matches: