fix: allow messages of just dots (#6330)

This commit is contained in:
nerix
2025-07-12 22:30:54 +02:00
committed by GitHub
parent 0d205a63f0
commit 76b9432da7
3 changed files with 34 additions and 2 deletions
+2 -1
View File
@@ -66,7 +66,8 @@ namespace detail {
bool isUnknownCommand(const QString &text)
{
static QRegularExpression isUnknownCommand(
R"(^(?:\.|\/)(?!me\s|\s))", QRegularExpression::CaseInsensitiveOption);
R"(^(?:\.(?!\.|$)|\/)(?!me(?:\s|$)|\s))",
QRegularExpression::CaseInsensitiveOption);
auto match = isUnknownCommand.match(text);