プロジェクト

全般

プロフィール

バグ #1042 » 0001-description-to_show.patch

Satoshi Okuno, 2017-05-17 23:37

差分を表示:

core/lib/retriever/mixin/message_mixin.rb
129 129
  end
130 130

  
131 131
  def to_show
132
    @to_show ||= description.gsub(/&(gt|lt|quot|amp);/){|m| {'gt' => '>', 'lt' => '<', 'quot' => '"', 'amp' => '&'}[$1] }.freeze
132
    if @prev_description != description
133
      @prev_description = description
134
      @to_show = description.gsub(/&(gt|lt|quot|amp);/){|m| {'gt' => '>', 'lt' => '<', 'quot' => '"', 'amp' => '&'}[$1] }.freeze
135
    end
136

  
137
    @to_show
133 138
  end
134 139

  
135 140
  def to_message
(1-1/2)