related to issue 841: allowing dash characters for package names too

This commit is contained in:
Matthias Koefferlein 2021-06-19 23:48:15 +02:00
parent 5fb2f024dc
commit 4840c119a1
1 changed files with 2 additions and 2 deletions

View File

@ -280,7 +280,7 @@ SaltGrain::valid_name (const std::string &n)
}
std::string s;
if (! ex.try_read_word (s, "_.")) {
if (! ex.try_read_word (s, "_.-")) {
return false;
}
res += s;
@ -293,7 +293,7 @@ SaltGrain::valid_name (const std::string &n)
if (ex.test (".")) {
return false;
}
if (! ex.try_read_word (s, "_.")) {
if (! ex.try_read_word (s, "_.-")) {
return false;
}
res += "/";