aboutsummaryrefslogtreecommitdiffstats
path: root/lib/attachment_to_html
diff options
context:
space:
mode:
authorJames McKinney <james@slashpoundbang.com>2015-05-27 16:34:52 -0400
committerJames McKinney <james@slashpoundbang.com>2015-05-27 16:34:52 -0400
commitd8da040dce219f66e7788bddf645ce9c9aa017f4 (patch)
tree63eb5e04e629a268edff6df4397abe8d95b7c666 /lib/attachment_to_html
parentef97ebe2b9b12f5c44a9382b7a81cfca765c1696 (diff)
Eliminate !! (bang bang)
Diffstat (limited to 'lib/attachment_to_html')
-rw-r--r--lib/attachment_to_html/adapter.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/attachment_to_html/adapter.rb b/lib/attachment_to_html/adapter.rb
index d8b9f41f7..058fb2a01 100644
--- a/lib/attachment_to_html/adapter.rb
+++ b/lib/attachment_to_html/adapter.rb
@@ -41,7 +41,7 @@ module AttachmentToHTML
end
def contains_images?
- !!body.match(/<img[^>]*>/mi)
+ body.match(/<img[^>]*>/mi)
end
def create_tempfile(text)