We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 289cbe7 commit 57faca4Copy full SHA for 57faca4
1 file changed
src/prepareCommitMsg.ts
@@ -48,7 +48,7 @@ function _splitPrefixDesc(value: string) {
48
let prefix: string, description: string
49
50
if (value.includes(":")) {
51
- [prefix, description] = value.split(":")
+ [prefix, description] = value.split(":", 2)
52
} else {
53
[prefix, description] = ["", value]
54
}
@@ -57,7 +57,7 @@ function _splitPrefixDesc(value: string) {
57
58
59
/**
60
- * Split a prefix into a custom prefix and Conventional Commit type prefix.
+ * Split a prefix (before a colon) into a custom prefix and Conventional Commit type prefix.
61
*/
62
function _splitPrefixes(value: string) {
63
const [customPrefix, typePrefix] = value.includes(" ")
0 commit comments