From c23d86d9a81b5808bf594bf757cbc1be07894df0 Mon Sep 17 00:00:00 2001 From: Davlatjon Shavkatov Date: Wed, 28 Feb 2024 00:37:29 +0500 Subject: [PATCH] fix(presets): follow `conventional-commits` spec --- presets/conventional-commits.sh | 2 +- presets/library.sh | 2 +- presets/workspace.sh | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/presets/conventional-commits.sh b/presets/conventional-commits.sh index a0b18e6..e34a275 100755 --- a/presets/conventional-commits.sh +++ b/presets/conventional-commits.sh @@ -3,7 +3,7 @@ set -e # RegExp as variable regexp_commit_primary="^([a-z]+)(\(([^\)]+)\))?:\ (.+)$" -regexp_commit_major="^([a-z]+)!?(\(([^\)]+)\))?!?:\ (.+)$" +regexp_commit_major="^([a-z]+)(\(([^\)]+)\))?!?:\ (.+)$" string_commit_major="^BREAKING CHANGE" # Release types diff --git a/presets/library.sh b/presets/library.sh index a0b18e6..e34a275 100644 --- a/presets/library.sh +++ b/presets/library.sh @@ -3,7 +3,7 @@ set -e # RegExp as variable regexp_commit_primary="^([a-z]+)(\(([^\)]+)\))?:\ (.+)$" -regexp_commit_major="^([a-z]+)!?(\(([^\)]+)\))?!?:\ (.+)$" +regexp_commit_major="^([a-z]+)(\(([^\)]+)\))?!?:\ (.+)$" string_commit_major="^BREAKING CHANGE" # Release types diff --git a/presets/workspace.sh b/presets/workspace.sh index e0964e5..f8865ed 100644 --- a/presets/workspace.sh +++ b/presets/workspace.sh @@ -3,7 +3,7 @@ set -e # RegExp as variable regexp_commit_primary="^([a-z]+)(\(([^\)]+)\))?:\ (.+)$" -regexp_commit_major="^([a-z]+)!?(\(([^\)]+)\))?!?:\ (.+)$" +regexp_commit_major="^([a-z]+)(\(([^\)]+)\))?!?:\ (.+)$" string_commit_major="^BREAKING CHANGE" # Release types