Skip to content

Commit

Permalink
pygui: validation of the node name field will allow - instead of _, -…
Browse files Browse the repository at this point in the history
… is valid while _ is not
  • Loading branch information
bharnden committed Jan 7, 2021
1 parent f919520 commit a660b01
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion daemon/core/gui/validation.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,7 @@ def is_valid(self, s: str) -> bool:
if len(s) == 0:
return True
for x in s:
if not x.isalnum() and x != "_":
if not x.isalnum() and x != "-":
return False
return True

Expand Down

0 comments on commit a660b01

Please sign in to comment.