fix: allow messages of just dots (#6330)
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user