allow period for the alias #1
@ -5,7 +5,7 @@ import (
|
|||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
aliasRegex = `^[a-zA-Z0-9.]+$`
|
aliasRegex = `^[a-zA-Z0-9]+(\.[a-zA-Z0.9]+)*$`
|
||||||
|
|||||||
)
|
)
|
||||||
|
|
||||||
// IsValidAlias checks if the alias is a valid alias format
|
// IsValidAlias checks if the alias is a valid alias format
|
||||||
|
Loading…
Reference in New Issue
Block a user
Actually this should be previous regex then followed by 1+ dot-prefixed alphanumerics something like
^[a-zA-Z0-9]+(\.[a-zA-Z0.9]+)*$