aboutsummaryrefslogtreecommitdiffstats
path: root/actiontext/lib/action_text/attachables/remote_image.rb
diff options
context:
space:
mode:
Diffstat (limited to 'actiontext/lib/action_text/attachables/remote_image.rb')
-rw-r--r--actiontext/lib/action_text/attachables/remote_image.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actiontext/lib/action_text/attachables/remote_image.rb b/actiontext/lib/action_text/attachables/remote_image.rb
index 650b11862b..c5819ef1f5 100644
--- a/actiontext/lib/action_text/attachables/remote_image.rb
+++ b/actiontext/lib/action_text/attachables/remote_image.rb
@@ -14,7 +14,7 @@ module ActionText
private
def content_type_is_image?(content_type)
- content_type.to_s =~ /^image(\/.+|$)/
+ content_type.to_s.match?(/^image(\/.+|$)/)
end
def attributes_from_node(node)