chore: Allow all chars for emoji search

This commit is contained in:
Christian Kußowski 2025-11-19 14:40:05 +01:00
parent bc5a38230f
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;
}
}
final emojiMatch =
RegExp(r'(?:\s|^):(?:([-\w]+)~)?([-\w]+)$').firstMatch(searchText);
final emojiMatch = RegExp(
r'(?:\s|^):(?:([\p{L}\p{N}_-]+)~)?([\p{L}\p{N}_-]+)$',
unicode: true,
).firstMatch(searchText);
if (emojiMatch != null) {
final packSearch = emojiMatch[1];
final emoteSearch = emojiMatch[2]!.toLowerCase();