mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 04:42:55 +08:00
Use NFKD normalization instead of NFD
This commit is contained in:
parent
bc7b530b0a
commit
c26de01399
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue
Block a user