Search: replace non ASCII by question mark

This commit is contained in:
M66B 2021-06-04 12:15:17 +02:00
parent 9d35629b36
commit ee11063b57
1 changed files with 1 additions and 1 deletions

View File

@ -733,7 +733,7 @@ public class BoundaryCallbackMessages extends PagedList.BoundaryCallback<TupleMe
.replace("ij", "ij"); .replace("ij", "ij");
search = Normalizer search = Normalizer
.normalize(search, Normalizer.Form.NFKD) .normalize(search, Normalizer.Form.NFKD)
.replaceAll("[^\\p{ASCII}]", ""); .replaceAll("[^\\p{ASCII}]", "?");
} }
List<String> word = new ArrayList<>(); List<String> word = new ArrayList<>();