summaryrefslogtreecommitdiffstats
path: root/app/helpers/search_helper.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-31 11:10:57 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2011-08-31 11:10:57 +0000
commit54daad8af5850d140a53c4a5ffb774fcd24f332e (patch)
tree1221c97ed88306e7feb15fef3c214e550ca4066c /app/helpers/search_helper.rb
parent698fc53c94b58b34c6b3c312bbf28ccce6bcb9ef (diff)
downloadredmine-54daad8af5850d140a53c4a5ffb774fcd24f332e.tar.gz
redmine-54daad8af5850d140a53c4a5ffb774fcd24f332e.zip
remove trailing white-spaces from app/helpers/search_helper.rb.
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6885 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/helpers/search_helper.rb')
-rw-r--r--app/helpers/search_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/helpers/search_helper.rb b/app/helpers/search_helper.rb
index 0384e79d2..d80d51260 100644
--- a/app/helpers/search_helper.rb
+++ b/app/helpers/search_helper.rb
@@ -19,7 +19,7 @@ module SearchHelper
def highlight_tokens(text, tokens)
return text unless text && tokens && !tokens.empty?
re_tokens = tokens.collect {|t| Regexp.escape(t)}
- regexp = Regexp.new "(#{re_tokens.join('|')})", Regexp::IGNORECASE
+ regexp = Regexp.new "(#{re_tokens.join('|')})", Regexp::IGNORECASE
result = ''
text.split(regexp).each_with_index do |words, i|
if result.length > 1200