fix #407 correct non-english hashtags

pull/408/head
vivganes 2023-05-14 23:39:42 +05:30
rodzic 6842d12b39
commit d261003217
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -335,7 +335,7 @@ private fun SearchBar(accountViewModel: AccountViewModel, navController: NavCont
}
}
val hashtagSearch = Pattern.compile("(?:\\s|\\A)#([A-Za-z0-9_\\-]+)")
val hashtagSearch = Pattern.compile("(?:\\s|\\A)#([^\\s!@#\$%^&*()=+./,\\[{\\]};:'\"?><]+)")
fun findHashtags(content: String): List<String> {
val matcher = hashtagSearch.matcher(content)