mirror of
https://github.com/jrpie/Launcher.git
synced 2025-02-22 22:11:27 +01:00
fixed regex
This commit is contained in:
parent
8984dfa762
commit
8f44623b61
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Reference in a new issue