From 12d5aed387a629c1c62bae1a322d18747c363098 Mon Sep 17 00:00:00 2001 From: Thierry Michel Date: Tue, 12 Sep 2023 15:14:45 +0200 Subject: [PATCH] =?UTF-8?q?fix:=20=F0=9F=A9=B9=20add=20subject=20if=20no?= =?UTF-8?q?=20emoji?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/index.mjs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/index.mjs b/src/index.mjs index c368488..d6163db 100644 --- a/src/index.mjs +++ b/src/index.mjs @@ -365,7 +365,9 @@ function format(answers) { } // Optional subject with emoji - const subject = answers.emoji ? `${answers.emoji} ${answers.subject}` : '' + const subject = answers.emoji + ? `${answers.emoji} ${answers.subject}` + : answers.subject // Build head line, add emoji and limit to 100 const head = `${truncate(