Fix issue where non-ascii characters didn't show inline emoji suggestions.

Fixes #12579
This commit is contained in:
Greyson Parrelli
2022-11-15 11:43:50 -05:00
committed by Alex Hart
parent c51e13fd30
commit ebc1bc3f7f

View File

@@ -18,7 +18,7 @@ private const val MINIMUM_QUERY_THRESHOLD = 1
private const val MINIMUM_INLINE_QUERY_THRESHOLD = 2 private const val MINIMUM_INLINE_QUERY_THRESHOLD = 2
private const val EMOJI_SEARCH_LIMIT = 20 private const val EMOJI_SEARCH_LIMIT = 20
private val NOT_PUNCTUATION = "[A-Za-z0-9 ]".toRegex() private val NOT_PUNCTUATION = "[^\\p{Punct}]".toRegex()
class EmojiSearchRepository(private val context: Context) { class EmojiSearchRepository(private val context: Context) {