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
414 414
  end
415 415

  
416 416
  def format_activity_description(text)
417
    h(text.to_s.truncate(120).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).
417
    h(text.to_s.truncate(240).gsub(%r{[\r\n]*<(pre|code)>.*$}m, '...')).
418 418
      gsub(/[\r\n]+/, "<br />").html_safe
419 419
  end
420 420

  
(3-3/3)