tg_cli: improve get_delimiter.

This commit is contained in:
levlam 2022-01-24 18:22:57 +03:00
parent 4c4b609448
commit 2e7205d391

View File

@ -427,7 +427,7 @@ class CliClient final : public Actor {
static char get_delimiter(Slice str) {
std::unordered_set<char> chars;
for (auto c : trim(str)) {
if (!is_alnum(c) && c != '-' && c != '.' && c != '/') {
if (!is_alnum(c) && c != '-' && c != '.' && c != '/' && static_cast<uint8_t>(c) <= 127) {
chars.insert(c);
}
}