aboutsummaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorLouise Crow <louise.crow@gmail.com>2012-10-18 10:51:27 +0100
committerLouise Crow <louise.crow@gmail.com>2012-10-18 19:21:41 +0100
commit9d5af4d00c9e32a1dea163dfc8f5b57c53aea254 (patch)
tree0ae80295aca35e2b54d5384ca6bc3f840f501395 /app/models
parenta902a8308fe05e9fd7a61aa8378aaf95729fcc88 (diff)
Convert request cited in comment to failing spec, update regex to make it pass (we now use the HTML parts of emails by preference, so there are some leading spaces.)
Diffstat (limited to 'app/models')
-rw-r--r--app/models/incoming_message.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb
index 367909f57..0511d16b0 100644
--- a/app/models/incoming_message.rb
+++ b/app/models/incoming_message.rb
@@ -347,8 +347,7 @@ class IncomingMessage < ActiveRecord::Base
text.gsub!(/^\s?#{name}[^\n]+\n([^\n]+\n)?\s?Sent by:[^\n]+\n.*/ims, "\n\n" + replacement)
# Some other sort of forwarding quoting
- # http://www.whatdotheyknow.com/request/224/response/326
- text.gsub!(/^#{name}[^\n]+\n[0-9\/:\s]+\s+To\s+FOI requests at.*/ims, "\n\n" + replacement)
+ 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