aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-06-25 12:49:17 +0100
committerGareth Rees <gareth@mysociety.org>2014-06-25 12:49:17 +0100
commitfe5880e555f98350b4c08a4885c560e35692687f (patch)
tree31ae4a508ec50a1c4801a56d85f1329848358380 /app/controllers/general_controller.rb
parentc99c9ef86c9020939cf8d0930faca5bd206e111f (diff)
parentf23b89f3474847cdd14ba892c5a7259964e18148 (diff)
Merge branch 'issues/1434-email-highlighting' into rails-3-develop
Diffstat (limited to 'app/controllers/general_controller.rb')
-rw-r--r--app/controllers/general_controller.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/general_controller.rb b/app/controllers/general_controller.rb
index 28055ddbf..158492eb2 100644
--- a/app/controllers/general_controller.rb
+++ b/app/controllers/general_controller.rb
@@ -159,7 +159,7 @@ class GeneralController < ApplicationController
end
# Spelling and highight words are same for all three queries
- @highlight_words = @request_for_spelling.words_to_highlight
+ @highlight_words = @request_for_spelling.words_to_highlight(:regex => true, :include_original => true)
if !(@request_for_spelling.spelling_correction =~ /[a-z]+:/)
@spelling_correction = @request_for_spelling.spelling_correction
end