Fix some rubocop todos

This commit is contained in:
Tom Hughes 2020-07-31 22:45:53 +01:00
parent 06952ea2b3
commit 77f9aec772
5 changed files with 7 additions and 25 deletions

View file

@ -58,7 +58,7 @@ module BrowseTagsHelper
def wikipedia_link(key, value)
# Some k/v's are wikipedia=http://en.wikipedia.org/wiki/Full%20URL
return nil if value =~ %r{^https?://}
return nil if %r{^https?://}.match?(value)
if key == "wikipedia"
# This regex should match Wikipedia language codes, everything