tg_cli: don't allow $ as delimiter.

This commit is contained in:
levlam 2024-08-07 16:28:58 +03:00
parent 799e6010b4
commit f86cd1aaa0

View File

@ -458,7 +458,7 @@ class CliClient final : public Actor {
static char get_delimiter(Slice str) {
FlatHashSet<char> chars;
for (auto c : trim(str)) {
if (!is_alnum(c) && c != '_' && c != '-' && c != '@' && c != '.' && c != '/' && c != '\0' &&
if (!is_alnum(c) && c != '_' && c != '-' && c != '@' && c != '.' && c != '/' && c != '\0' && c != '$' &&
static_cast<uint8>(c) <= 127) {
chars.insert(c);
}