mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Use NFKD normalization instead of NFD
This commit is contained in:
@@ -193,7 +193,7 @@ class SearchIndexer
|
||||
DIACRITICS ||= /([\u0300-\u036f]|[\u1AB0-\u1AFF]|[\u1DC0-\u1DFF]|[\u20D0-\u20FF])/
|
||||
|
||||
def characters(string)
|
||||
scrubbed << " #{string.unicode_normalize(:nfd).gsub(DIACRITICS, "").strip} "
|
||||
scrubbed << " #{string.unicode_normalize(:nfkd).gsub(DIACRITICS, "").strip} "
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user