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
+31
View File
@@ -20,6 +20,27 @@ TEST(TwitchChannelDetail_isUnknownCommand, good)
". .hello",
"/ .hello",
". /hello",
".", // this results in an empty message but not in an error (twitchdev/issues#1019)
"/me",
".me",
"..",
"...",
"....",
"",
"foo",
"a",
"!",
". .",
". ..",
".. ..",
".. .",
"/ /",
"/ .",
". /",
". ./",
".. /",
".. me",
". me",
};
// clang-format on
@@ -40,6 +61,16 @@ TEST(TwitchChannelDetail_isUnknownCommand, bad)
".badcommand hello",
"/@badcommand hello",
".@badcommand hello",
"/bann username ban reason",
"/bann username",
"//",
"./",
"./me",
"./w",
"/.",
"/.me",
"/.w",
"/,me",
};
// clang-format on