Skip to content

Commit

Permalink
trim template result before setting git commit message, refs rioukkev…
Browse files Browse the repository at this point in the history
  • Loading branch information
lociii committed Aug 29, 2022
1 parent 1694815 commit 74583b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/template.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@ export const templateSerialize = (
const e = data[i];
newTemplate = newTemplate.replace(`{${e.key}}`, e.value);
}
return newTemplate;
return newTemplate.trim();
};

0 comments on commit 74583b3

Please sign in to comment.