Skip to content

Commit c64c7eb

Browse files
committed
update prepareCommitMsg.ts
1 parent fbf3154 commit c64c7eb

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

src/prepareCommitMsg.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,10 @@ export function _cleanJoin(first: string, second: string) {
3535
return `${first} ${second}`.trim();
3636
}
3737

38-
function _splitPrefix(prefix: string) {
39-
return prefix.includes(" ")
40-
? prefix.split(" ", 2)
41-
: ["", prefix];
38+
function _splitPrefixes(value: string) {
39+
return value.includes(" ")
40+
? value.split(" ", 2)
41+
: ["", value];
4242
}
4343

4444
/**
@@ -51,7 +51,7 @@ function _splitPrefix(prefix: string) {
5151
export function _splitMsg(msg: string) {
5252
const [prefix, description] = msg.includes(":") ? msg.split(":") : ["", msg];
5353

54-
const [customPrefix, typePrefix] = _splitPrefix(prefix)
54+
const [customPrefix, typePrefix] = _splitPrefixes(prefix)
5555

5656
return { customPrefix, typePrefix, description: description.trim() };
5757
}

0 commit comments

Comments
 (0)