Project

General

Profile

Feature #42041 » 0001-Increase-the-maximum-description-length-to-240-chara.patch

Go MAEDA, 2024-12-26 00:41

View differences:

app/helpers/application_helper.rb
end
def format_activity_description(text)
h(text.to_s.truncate(120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).
h(text.to_s.truncate(240).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).
gsub(/[\r\n]+/, "<br />").html_safe
end
(3-3/3)