fluffychat merge
This commit is contained in:
commit
a119425079
2 changed files with 6 additions and 4 deletions
|
|
@ -91,8 +91,10 @@ class InputBar extends StatelessWidget {
|
|||
// }
|
||||
// }
|
||||
// Pangea#
|
||||
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();
|
||||
|
|
|
|||
|
|
@ -81,9 +81,9 @@ class _StartPollBottomSheetState extends State<StartPollBottomSheet> {
|
|||
children: [
|
||||
TextField(
|
||||
controller: _bodyController,
|
||||
minLines: 1,
|
||||
minLines: 2,
|
||||
maxLines: 4,
|
||||
maxLength: 512,
|
||||
maxLength: 1024,
|
||||
onChanged: _updateCanCreate,
|
||||
decoration: InputDecoration(
|
||||
hintText: L10n.of(context).pollQuestion,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue