diff options
author | Gareth Rees <gareth@mysociety.org> | 2015-05-28 09:44:20 +0100 |
---|---|---|
committer | Gareth Rees <gareth@mysociety.org> | 2015-05-28 09:44:20 +0100 |
commit | 47c4c79948bb2fc35e24a898fda7fb636fda655d (patch) | |
tree | 7d7add385b0e0b8b4f1ac9be843a397b3022e28c /lib/attachment_to_html/adapter.rb | |
parent | c6e8e298fd0861cd822f23f370a01ccbc21cb9d3 (diff) | |
parent | d8da040dce219f66e7788bddf645ce9c9aa017f4 (diff) |
Merge remote-tracking branch 'jpmckinney/truefalse' into rails-3-develop
Diffstat (limited to 'lib/attachment_to_html/adapter.rb')
-rw-r--r-- | lib/attachment_to_html/adapter.rb | 2 |
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) |