summary refs log tree commit diff
path: root/src/timeline/InputBar.cpp
diff options
context:
space:
mode:
authorDeepBlueV7.X <nicolas.werner@hotmail.de>2021-03-28 13:59:47 +0000
committerGitHub <noreply@github.com>2021-03-28 13:59:47 +0000
commit463dd206826d9fbe33b3ac10fadb438028a9eed9 (patch)
tree2ac208d3bff59205a58f3b61a60ea0843c27a89b /src/timeline/InputBar.cpp
parentfix command parsing (diff)
downloadnheko-463dd206826d9fbe33b3ac10fadb438028a9eed9.tar.xz
Use QRegularExpression
Diffstat (limited to 'src/timeline/InputBar.cpp')
-rw-r--r--src/timeline/InputBar.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/timeline/InputBar.cpp b/src/timeline/InputBar.cpp
index d7db50a9..0b498e82 100644
--- a/src/timeline/InputBar.cpp
+++ b/src/timeline/InputBar.cpp
@@ -204,7 +204,7 @@ InputBar::send()
         auto wasEdit = !room->edit().isEmpty();
 
         if (text().startsWith('/')) {
-                int command_end = text().indexOf(QRegExp("\\s+"));
+                int command_end = text().indexOf(QRegularExpression("\\s"));
                 if (command_end == -1)
                         command_end = text().size();
                 auto name = text().mid(1, command_end - 1);