feat(commands): trim body, footer (#24)
This commit is contained in:
@@ -269,15 +269,17 @@ const command = new Command("commit")
|
||||
// Stop clack input
|
||||
process.stdin.pause();
|
||||
|
||||
body = await getEditorInput(
|
||||
`e.g.
|
||||
body = (
|
||||
await getEditorInput(
|
||||
`e.g.
|
||||
* Revert "Guard against SMTP smuggling", commit faf23f1, by restoring the setting to its default.
|
||||
* Revert "[security] SMTP smuggling: update short term fix (#2346)", commmit e931e10, by restoring the setting to its default.
|
||||
* Set smtpd_forbid_bare_newline=normalize.
|
||||
|
||||
Fixes #444
|
||||
`,
|
||||
);
|
||||
)
|
||||
).trim();
|
||||
|
||||
// Resume clack input
|
||||
process.stdin.resume();
|
||||
@@ -296,11 +298,13 @@ Fixes #444
|
||||
|
||||
if (writeFooter) {
|
||||
process.stdin.pause();
|
||||
footer = await getEditorInput(
|
||||
`e.g.
|
||||
footer = (
|
||||
await getEditorInput(
|
||||
`e.g.
|
||||
Co-authored-by: @john
|
||||
`,
|
||||
);
|
||||
)
|
||||
).trim();
|
||||
process.stdin.resume();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user