Fix various rubocop warnings.
This commit is contained in:
@@ -35,7 +35,7 @@ module PostsHelper
|
||||
|
||||
def post_source_tag(source, normalized_source = source)
|
||||
# Only allow http:// and https:// links. Disallow javascript: links.
|
||||
if source =~ %r!\Ahttps?://!i
|
||||
if source =~ %r{\Ahttps?://}i
|
||||
external_link_to(normalized_source, strip: :subdomain) + " ".html_safe + link_to("»", source, rel: "external noreferrer nofollow")
|
||||
else
|
||||
source
|
||||
|
||||
Reference in New Issue
Block a user