Skip to content

Commit

Permalink
Merge pull request #30 from lociii/master
Browse files Browse the repository at this point in the history
Trim template result before setting git commit message, refs #29
  • Loading branch information
rioukkevin authored Sep 30, 2022
2 parents 1694815 + 74583b3 commit 3fc77dd
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 3fc77dd

Please sign in to comment.