From f0419b6a8942b3c4c45d9323dcefd81ad7f70811 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jarom=C3=ADr=20Stan=C4=9Bk?= Date: Thu, 19 Oct 2023 21:12:40 +0200 Subject: [PATCH] Fixed incorrect use of .join() on bounce. --- outbound/hmail.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outbound/hmail.js b/outbound/hmail.js index 9a5fe96d0..c9aab2fcb 100644 --- a/outbound/hmail.js +++ b/outbound/hmail.js @@ -1062,7 +1062,7 @@ class HMailItem extends events.EventEmitter { "\r": '#10', "\n": '#13' }; - const escape_pattern = new RegExp(`[${Object.keys(escaped_chars).join()}]`, 'g'); + const escape_pattern = new RegExp(`[${Object.keys(escaped_chars).join('')}]`, 'g'); bounce_msg_html_.forEach(line => { line = line.replace(/\{(\w+)\}/g, (i, word) => {