1
0
Fork 0
mirror of https://github.com/jrpie/Launcher.git synced 2025-07-30 03:06:41 +02:00

fixed regex

This commit is contained in:
Josia Pietsch 2022-08-12 21:07:24 +02:00
commit 8f44623b61

View file

@ -158,7 +158,7 @@ class AppsRecyclerAdapter(val activity: Activity,
fun filter(text: String) {
// normalize text for search
fun normalize(text: String): String{
return text.toLowerCase(Locale.ROOT).replace("[^a-z0-9]", "")
return text.toLowerCase(Locale.ROOT).replace("[^a-z0-9]".toRegex(), "")
}
appsListDisplayed.clear()
if (text.isEmpty()) {