Skip to content

Commit

Permalink
Disable cop
Browse files Browse the repository at this point in the history
  • Loading branch information
mscrivo committed Jun 7, 2024
1 parent 6363861 commit 6ec1b69
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/html2text.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,11 +31,15 @@ def self.convert(html)
end

def self.fix_newlines(text)
# rubocop:disable Performance/StringReplacement
text.gsub("\r\n", "\n").gsub("\r", "\n")
# rubocop:enable Performance/StringReplacement
end

def self.replace_entities(text)
# rubocop:disable Performance/StringReplacement
text.gsub(' ', ' ').gsub("\u00a0", ' ').gsub('‌', '')
# rubocop:enable Performance/StringReplacement
end

def convert
Expand Down

0 comments on commit 6ec1b69

Please sign in to comment.