lib/mongoid_search/util.rb in mongoid_search-0.3.6 vs lib/mongoid_search/util.rb in mongoid_search-0.4.0

- old
+ new

@@ -38,10 +38,10 @@ strip_accents = Mongoid::Search.strip_accents return [] if text.blank? text = text.to_s .mb_chars - .normalize(:kd) + .unicode_normalize(:nfkd) .downcase .to_s .gsub(strip_symbols, ' ') # strip symbols .gsub(strip_accents, '') # strip accents .gsub(/[#{ligatures.keys.join("")}]/) { |c| ligatures[c] }