From 6ec1b697b43a4f42df7fb6ee320fdf68c585db41 Mon Sep 17 00:00:00 2001 From: Michael Scrivo Date: Fri, 7 Jun 2024 10:27:30 -0400 Subject: [PATCH] Disable cop --- lib/html2text.rb | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/html2text.rb b/lib/html2text.rb index a332387..66e19e0 100644 --- a/lib/html2text.rb +++ b/lib/html2text.rb @@ -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