fix(commands): incorrect regex generation with specified scopes

This commit is contained in:
2023-08-23 23:35:48 +03:00
parent 8dbe266e39
commit 8cb67f2cfd
2 changed files with 2 additions and 8 deletions

View File

@@ -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"
);