use regex for commands

This commit is contained in:
Salvatore Giordano
2020-03-04 12:06:32 +01:00
parent 76e5a9db8b
commit c37ed34802
3 changed files with 8 additions and 7 deletions
+1 -1
View File
@@ -206,7 +206,7 @@ class _MessageInputState extends State<MessageInput> {
.channel
.config
.commands
.where((c) => c.name.startsWith(text.replaceFirst('/', '')))
.where((c) => c.name.contains(text.replaceFirst('/', '')))
.toList();
RenderBox renderBox = context.findRenderObject();