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
66
77 def call
88 return html if context[:clean_text] == false
9− html.strip!
10− while html.gsub!(EMPTY_NODES_RGX, ''); end
11− html
9+
10+ # Clone frozen literal.
11+ result = html.dup
12+ result.strip!
13+ while result.gsub!(EMPTY_NODES_RGX, ''); end
14+ result
1215 end
1316 end
1417 end