chore: Allow all chars for emoji search

This commit is contained in:
Christian Kußowski 2025-11-19 14:40:05 +01:00
commit 7724de65a2
No known key found for this signature in database
GPG key ID: E067ECD60F1A0652

View file

@ -71,8 +71,10 @@ class InputBar extends StatelessWidget {
if (ret.length > maxResults) return ret; if (ret.length > maxResults) return ret;
} }
} }
final emojiMatch = final emojiMatch = RegExp(
RegExp(r'(?:\s|^):(?:([-\w]+)~)?([-\w]+)$').firstMatch(searchText); r'(?:\s|^):(?:([\p{L}\p{N}_-]+)~)?([\p{L}\p{N}_-]+)$',
unicode: true,
).firstMatch(searchText);
if (emojiMatch != null) { if (emojiMatch != null) {
final packSearch = emojiMatch[1]; final packSearch = emojiMatch[1];
final emoteSearch = emojiMatch[2]!.toLowerCase(); final emoteSearch = emojiMatch[2]!.toLowerCase();