Merge pull request #1953 from marutosi/finn/mb_chars

remove unneeded String#mb_chars from SearchHelper
pull/1928/head
Alex Coles 10 years ago
commit a34512404a
  1. 1
      app/helpers/search_helper.rb

@ -39,7 +39,6 @@ module SearchHelper
result << '...'
break
end
words = words.mb_chars
if i.even?
result << h(words.length > 100 ? "#{words.slice(0..44)} ... #{words.slice(-45..-1)}" : words)
else

Loading…
Cancel
Save