From 463dd206826d9fbe33b3ac10fadb438028a9eed9 Mon Sep 17 00:00:00 2001 From: "DeepBlueV7.X" Date: Sun, 28 Mar 2021 13:59:47 +0000 Subject: [PATCH] Use QRegularExpression --- src/timeline/InputBar.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);