From 756b29df22985053f73453f2787df3744b9c3285 Mon Sep 17 00:00:00 2001 From: Paul Arterburn Date: Wed, 17 Jan 2024 21:55:33 -0100 Subject: [PATCH] Downcase match --- app/lib/email_processor.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/lib/email_processor.rb b/app/lib/email_processor.rb index 513e4b3f..59d1094e 100644 --- a/app/lib/email_processor.rb +++ b/app/lib/email_processor.rb @@ -83,10 +83,10 @@ def process next if image_height && image_width && image_height < 100 && image_width < 100 # skip signature images - next if @user.id == 293 && image_url.include?("cropped-img-0719-300x86.jpeg") - next if @user.id == 10836 && image_url.include?("b_logo.png") - next if @user.id == 2541 && image_url.include?("image001.jpg") - next if image_url.include?("linkedin_icon_circle.svg.png") + next if @user.id == 293 && image_url.downcase.include?("cropped-img-0719-300x86.jpeg") + next if @user.id == 10836 && image_url.downcase.include?("b_logo.png") + next if @user.id == 2541 && image_url.downcase.include?("image001.jpg") + next if image_url.downcase.include?("linkedin_icon_circle.svg.png") valid_attachment_urls << image_url end