mirror of https://github.com/KLayout/klayout.git
related to issue 841: allowing dash characters for package names too
This commit is contained in:
parent
5fb2f024dc
commit
4840c119a1
|
|
@ -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 += "/";
|
||||
|
|
|
|||
Loading…
Reference in New Issue