Skip to content

Commit

Permalink
Fix: add empty string as param to .join() on bounce. (#3237)
Browse files Browse the repository at this point in the history
  • Loading branch information
stanek0j authored Oct 19, 2023
1 parent eb5466f commit bbc3eac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion outbound/hmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) => {
Expand Down

0 comments on commit bbc3eac

Please sign in to comment.