From 9f754e801f82aad8db760786ad3eb72cc7993108 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Sun, 16 Jun 2013 22:02:29 -0300 Subject: Compare host scheme using case-insensitive regexp Before: image_tag("HTTP://google.com") # => "\"Google\"" image_tag("http://google.com") # => "\"Google\"" After: image_tag("HTTP://google.com") # => "\"Google\"" image_tag("http://google.com") # => "\"Google\"" Backport of #10969 --- actionpack/lib/action_view/asset_paths.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_view/asset_paths.rb b/actionpack/lib/action_view/asset_paths.rb index c192d3704e..636a37b699 100644 --- a/actionpack/lib/action_view/asset_paths.rb +++ b/actionpack/lib/action_view/asset_paths.rb @@ -43,7 +43,7 @@ module ActionView end def is_uri?(path) - path =~ %r{^[-a-z]+://|^(?:cid|data):|^//} + path =~ %r{^[-a-z]+://|^(?:cid|data):|^//}i end private -- cgit v1.2.3