X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/881d0b11b519524873ec28ea9ca8010b5710c83b..837924027a804a1a31ae1a2a3958c8e27e402a5e:/lib/rich_text.rb diff --git a/lib/rich_text.rb b/lib/rich_text.rb index f38de7621..84e695c6e 100644 --- a/lib/rich_text.rb +++ b/lib/rich_text.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module RichText SPAMMY_PHRASES = [ "Business Description:", "Additional Keywords:" @@ -144,7 +146,7 @@ module RichText end def truncated_text_content(element) - text = String.new + text = +"" append_text = lambda do |child| if child.type == :text