diff options
author | Louise Crow <louise.crow@gmail.com> | 2012-10-18 19:25:34 +0100 |
---|---|---|
committer | Louise Crow <louise.crow@gmail.com> | 2012-10-18 19:25:34 +0100 |
commit | 5ad0dcc660b1fdb8e8625b41950547aa7f6c5c49 (patch) | |
tree | e66367c5dacca928da25033aabcb1c1d6647fe3c /app/models | |
parent | 60c5a8a25b4b0c0e56e98ad5a0304883dd2f8035 (diff) |
Convert example in comment to failing spec, update regex to make spec pass - again the use of converted HTML parts in emails means extra leading spaces.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/incoming_message.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 0511d16b0..48fbfe73a 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -349,9 +349,8 @@ class IncomingMessage < ActiveRecord::Base # Some other sort of forwarding quoting text.gsub!(/^\s?#{name}\s+To\s+FOI requests at.*/ims, "\n\n" + replacement) - # http://www.whatdotheyknow.com/request/how_do_the_pct_deal_with_retirin_33#incoming-930 # http://www.whatdotheyknow.com/request/229/response/809 - text.gsub!(/^From: [^\n]+\nSent: [^\n]+\nTo:\s+['"?]#{name}['"]?\nSubject:.*/ims, "\n\n" + replacement) + text.gsub!(/^\s?From: [^\n]+\n\s?Sent: [^\n]+\n\s?To:\s+['"]?#{name}['"]?\n\s?Subject:.*/ims, "\n\n" + replacement) return text |