Fix some rubocop todos
This commit is contained in:
parent
06952ea2b3
commit
77f9aec772
5 changed files with 7 additions and 25 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue