Skip to content

Commit 4126ef6

Browse files
committed
update parseExisting.ts
1 parent 9556d46 commit 4126ef6

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/generate/parseExisting.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export function _splitPrefixDesc(value: string) {
3232
* Split a prefix (before a colon) into a custom prefix and Conventional Commit type prefix.
3333
*/
3434
function _splitPrefixes(value: string) {
35-
const [customPrefix, typePrefix] = value.includes(" ")
35+
const [customPrefix, typePrefix] = value !== '' && value.includes(" ")
3636
? value.split(" ", 2)
3737
: ["", value];
3838

0 commit comments

Comments
 (0)