fix: use case insensitive match for replacing emoji (#1605)
This commit is contained in:
parent
ae7c754dbc
commit
632384af03
1 changed files with 4 additions and 1 deletions
|
|
@ -360,7 +360,10 @@ class InputBar extends StatelessWidget {
|
|||
if (suggestion['type'] == 'emoji') {
|
||||
insertText = '${suggestion['emoji']!} ';
|
||||
startText = replaceText.replaceAllMapped(
|
||||
suggestion['current_word']!,
|
||||
// #Pangea
|
||||
RegExp(suggestion['current_word']!, caseSensitive: false),
|
||||
// suggestion['current_word']!,
|
||||
// Pangea#
|
||||
(Match m) => insertText,
|
||||
);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue