diff --git a/lib/rubocop/cop/rails/link_to_blank.rb b/lib/rubocop/cop/rails/link_to_blank.rb index 2ec78e44ec..fb61fb97f7 100644 --- a/lib/rubocop/cop/rails/link_to_blank.rb +++ b/lib/rubocop/cop/rails/link_to_blank.rb @@ -86,7 +86,7 @@ def add_rel(send_node, offence_node, corrector) def contains_noopener?(value) return false unless value - rel_array = value.to_s.split(' ') + rel_array = value.to_s.split rel_array.include?('noopener') || rel_array.include?('noreferrer') end end