aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/outgoing_message.rb
diff options
context:
space:
mode:
authorJames McKinney <james@slashpoundbang.com>2012-08-23 10:43:49 -0400
committerLouise Crow <louise.crow@gmail.com>2012-11-01 16:27:38 +0000
commit121dd9cc01c94dd2a75810b6cd52c8fbf208b6da (patch)
tree10d4a2dceec7246fa5b160846a22315ebc68bafe /app/models/outgoing_message.rb
parentb63a205faf27559d1d1710c7a3c68468e3d4c017 (diff)
remove s switch on regular expressions, which turns on SJIS encoding
Conflicts: app/models/incoming_message.rb
Diffstat (limited to 'app/models/outgoing_message.rb')
-rw-r--r--app/models/outgoing_message.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/outgoing_message.rb b/app/models/outgoing_message.rb
index 0e547d493..2e98e1021 100644
--- a/app/models/outgoing_message.rb
+++ b/app/models/outgoing_message.rb
@@ -151,7 +151,7 @@ class OutgoingMessage < ActiveRecord::Base
raise "Message id #{self.id} has type '#{self.message_type}' which validate can't handle"
end
end
- if self.body =~ /#{get_signoff}\s*\Z/ms
+ if self.body =~ /#{get_signoff}\s*\Z/m
errors.add(:body, _("Please sign at the bottom with your name, or alter the \"%{signoff}\" signature" % { :signoff => get_signoff }))
end
if !MySociety::Validate.uses_mixed_capitals(self.body)