Skip to content

Commit

Permalink
use case insensitive regex instead of hardcoded values
Browse files Browse the repository at this point in the history
  • Loading branch information
NickOvt committed Nov 20, 2023
1 parent df5ca8f commit 8f938a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/message-handler.js
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,7 @@ class MessageHandler {
for (let key of keyList) {
if (parsed[key] && parsed[key].length) {
for (let addr of parsed[key]) {
if (addr.address.includes('noreply') || addr.address.includes('no-reply')) {
if (/no-?reply/i.test(addr.address)) {
continue;
}
if (!addresses.some(a => a.address === addr.address)) {
Expand Down

0 comments on commit 8f938a9

Please sign in to comment.