From 8cb67f2cfd4c9ba72bf1370fea7595f266f746f7 Mon Sep 17 00:00:00 2001 From: Olivers Vitins Date: Wed, 23 Aug 2023 23:35:48 +0300 Subject: [PATCH] fix(commands): incorrect regex generation with specified scopes --- .rczrc.json | 8 +------- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 8 deletions(-) diff --git a/.rczrc.json b/.rczrc.json index 8ecc533..3925ad8 100644 --- a/.rczrc.json +++ b/.rczrc.json @@ -1,9 +1,3 @@ { - "scopes": [ - "commands", - "changelog", - "readme", - "release", - "config" - ] + "scopes": ["commands", "changelog", "readme", "release", "config"] } diff --git a/src/index.ts b/src/index.ts index d9f59eb..3d6cdba 100644 --- a/src/index.ts +++ b/src/index.ts @@ -467,7 +467,7 @@ program config?.types?.map((type) => type.value).join("|") || "feat|fix|build|ci|docs|perf|refactor|chore" })(\\((${ - config?.scopes ? [...config?.scopes, "release"] : "..*" + config?.scopes ? [...config?.scopes, "release"].join("|") : "..*" })\\))?!?: .* ?(\\(..*\\))?((\n\n..*)?(\n\n..*)?)?`, "gm" );