History

Update minitest to v6. Add coverage reporter.

Fix frozen literal warning; add tests.

spamguy committed 7 months ago

Commit b55623b1 parent c8e8f3216 files · +1102 −55Browse files

Showing the changes to lib/docs (1 of 16 files). Show all

Unified · Split

lib/docs/filters/core/clean_text.rb+6−3
@@ -6,9 +6,12 @@ module Docs · 5 unmodified lines
6 6
7 def call7 def call
8 return html if context[:clean_text] == false8 return html if context[:clean_text] == false
9 html.strip!9
10 while html.gsub!(EMPTY_NODES_RGX, ''); end10 # Clone frozen literal.
11 html11 result = html.dup
12 result.strip!
13 while result.gsub!(EMPTY_NODES_RGX, ''); end
14 result
12 end15 end
13 end16 end
14end17end