Skip to content

Commit

Permalink
Merge pull request #138 from yads/master
Browse files Browse the repository at this point in the history
Update Mongoid::Search::Util.normalize_keywords
  • Loading branch information
dblock authored Mar 19, 2020
2 parents 5b5d24e + 98cadf2 commit 3b43a45
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
2 changes: 1 addition & 1 deletion lib/mongoid_search/util.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 3b43a45

Please sign in to comment.