aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/general_controller.rb
diff options
context:
space:
mode:
authorGareth Rees <gareth@mysociety.org>2014-05-30 15:48:10 +0100
committerGareth Rees <gareth@mysociety.org>2014-06-25 10:40:37 +0100
commit4d9c89d0e416825eb52a720d74230f547454ba31 (patch)
tree7716d1bd5205beb872b949689f219b56d63f665c /app/controllers/general_controller.rb
parente5a73815f580d296572e11b71b5f3ed320bbe912 (diff)
Use regex based highlighting
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..759e80af9 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)
if !(@request_for_spelling.spelling_correction =~ /[a-z]+:/)
@spelling_correction = @request_for_spelling.spelling_correction
end