chore: Allow all chars for emoji search
This commit is contained in:
parent
bc5a38230f
commit
7724de65a2
1 changed files with 4 additions and 2 deletions
|
|
@ -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();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue