Use QRegularExpression

This commit is contained in:
DeepBlueV7.X 2021-03-28 13:59:47 +00:00 committed by GitHub
parent 6c31bb6ddc
commit 463dd20682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);