diff --git a/CHANGELOG.md b/CHANGELOG.md index 628010a..79a85c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,6 +1,7 @@ ## 0.4.0 (next) * Your contribution here. +* [#138](https://github.com/mongoid/mongoid_search/pull/138): Update mongoid::search::util.normalize_keywords - [@yads](https://github.com/yads). * [#132](https://github.com/mongoid/mongoid_search/pull/132): Add RELEASING and CONTRIBUTING - [@rtrv](https://github.com/rtrv). ## 0.3.6 diff --git a/lib/mongoid_search/util.rb b/lib/mongoid_search/util.rb index d409f23..333e1fa 100644 --- a/lib/mongoid_search/util.rb +++ b/lib/mongoid_search/util.rb @@ -40,7 +40,7 @@ def self.normalize_keywords(text) return [] if text.blank? text = text.to_s .mb_chars - .normalize(:kd) + .unicode_normalize(:nfkd) .downcase .to_s .gsub(strip_symbols, ' ') # strip symbols