From f735709853e1c954b0a0d375f96cddd3aa0cab1e Mon Sep 17 00:00:00 2001 From: Arpit Jalan Date: Wed, 29 Oct 2014 02:08:18 +0530 Subject: [PATCH] optimize detecting avatar image logic --- lib/email/styles.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/email/styles.rb b/lib/email/styles.rb index f1273d7c7f4..e11f601df7d 100644 --- a/lib/email/styles.rb +++ b/lib/email/styles.rb @@ -155,7 +155,7 @@ module Email def strip_avatars_and_emojis @fragment.css('img').each do |img| - if img['src'] =~ /user_avatar/ || img['src'] =~ /letter_avatar/ + if img['src'] =~ /_avatar/ img.parent['style'] = "vertical-align: top;" if img.parent.name == 'td' img.remove end