mirror of
https://github.com/gravitl/netmaker.git
synced 2025-02-25 16:44:01 +08:00
do not permit uppercase in Network names
This commit is contained in:
parent
afe12b277d
commit
c2e22926a4
1 changed files with 1 additions and 1 deletions
|
@ -583,7 +583,7 @@ func NetIDInNetworkCharSet(network *models.Network) bool {
|
|||
charset := "abcdefghijklmnopqrstuvwxyz1234567890-_."
|
||||
|
||||
for _, char := range network.NetID {
|
||||
if !strings.Contains(charset, strings.ToLower(string(char))) {
|
||||
if !strings.Contains(charset, string(char)) {
|
||||
return false
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue