1
0
Fork 0
mirror of https://github.com/M66B/FairEmail.git synced 2024-12-25 01:06:04 +00:00
This commit is contained in:
M66B 2020-10-15 16:40:27 +02:00
parent e3e0572681
commit 6b2a4dd91b
2 changed files with 6 additions and 2 deletions

View file

@ -697,7 +697,9 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
String search = query;
if (!utf8) {
search = search.replace("ß", "ss"); // Eszett
search = search
.replace("ß", "ss") // Eszett
.replace("ij", "ij");
search = Normalizer
.normalize(search, Normalizer.Form.NFKD)
.replaceAll("[^\\p{ASCII}]", "");

View file

@ -3978,7 +3978,9 @@ class Core {
if (sb.length() > 0) {
String ascii = Normalizer
.normalize(sb.toString(), Normalizer.Form.NFKD)
.replaceAll("\\p{InCombiningDiacriticalMarks}+", "");
.replaceAll("\\p{InCombiningDiacriticalMarks}+", "")
.replace("ß", "ss")
.replace("ij", "ij");
mbuilder.setContentText(ascii);
}