allow 'Umlaute' in Search.query

This commit is contained in:
Patrick Haßel 2024-06-18 11:08:36 +02:00
parent c1321b4edb
commit 7686ad6374

View File

@ -34,7 +34,7 @@ public class SearchDto {
}
public String getQueryEscaped() {
return query.toLowerCase(Locale.ROOT).replaceAll("^[^a-z0-9]+|[^a-z0-9]+$", "").replaceAll("[^a-z0-9]+", "-");
return query.toLowerCase(Locale.ROOT).replaceAll("^[^a-z0-9äüöß]+|[^a-z0-9äüöß]+$", "").replaceAll("[^a-z0-9äüöß]+", "-");
}
public String getPriceMinEscaped() {