diff options
author | francis <francis> | 2008-04-21 15:36:39 +0000 |
---|---|---|
committer | francis <francis> | 2008-04-21 15:36:39 +0000 |
commit | fc58a8979ba8af01a95983c69bf1dadd351fd3b3 (patch) | |
tree | 46fa466bbdf3b780e85568271610c53afb5da662 /app/models | |
parent | cd47e66b2c2bce536740d19cfb4c754378a7dd8f (diff) |
Generalise >>> case a bit.
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/incoming_message.rb | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/app/models/incoming_message.rb b/app/models/incoming_message.rb index 6af9a4d13..8ccb21c9b 100644 --- a/app/models/incoming_message.rb +++ b/app/models/incoming_message.rb @@ -17,7 +17,7 @@ # Copyright (c) 2007 UK Citizens Online Democracy. All rights reserved. # Email: francis@mysociety.org; WWW: http://www.mysociety.org/ # -# $Id: incoming_message.rb,v 1.85 2008-04-21 15:28:38 francis Exp $ +# $Id: incoming_message.rb,v 1.86 2008-04-21 15:36:39 francis Exp $ # TODO # Move some of the (e.g. quoting) functions here into rblib, as they feel @@ -209,7 +209,8 @@ class IncomingMessage < ActiveRecord::Base # 01:51:50 >>> # http://www.whatdotheyknow.com/request/71/response/108 # http://www.whatdotheyknow.com/request/police_powers_to_inform_car_insu - multiline_original_message = '(' + '''>>>.* \d\d/\d\d/\d\d\d\d\s+\d\d:\d\d:\d\d\s+>>>''' + ')' + # http://www.whatdotheyknow.com/request/secured_convictions_aided_by_cct + multiline_original_message = '(' + '''>>>.* \d\d/\d\d/\d\d\d\d\s+\d\d:\d\d(?::\d\d)?\s*>>>''' + ')' text.gsub!(/^(#{multiline_original_message}\n.*)$/ms, replacement) # Single line sections |