diff --git a/lib/stream.cpp b/lib/stream.cpp index 6e0067cb..e53f8cae 100644 --- a/lib/stream.cpp +++ b/lib/stream.cpp @@ -191,7 +191,7 @@ void Util::sanitizeName(std::string &streamname){ streamname.erase(i, streamname.end()); break; } - if (!isalpha(*i) && !isdigit(*i) && *i != '_' && *i != '.'){ + if (!isalpha(*i) && !isdigit(*i) && *i != '_' && *i != '.' && *i != '-'){ streamname.erase(i); }else{ *i = tolower(*i);