updated the alias regex to only pass proper alphanumeric, dot-separated aliases

This commit is contained in:
Alfred Kamanda 2025-04-17 14:01:38 +03:00
parent bb314d725c
commit 57d8b98212
Signed by: Alfred-mk
GPG Key ID: 7EA3D01708908703

View File

@ -5,7 +5,7 @@ import (
)
const (
aliasRegex = `^[a-zA-Z0-9]+(\.[a-zA-Z0.9]+)*$`
aliasRegex = `^(?i)[a-z][a-z0-9]*(\.[a-z0-9]+)*$`
)
// IsValidAlias checks if the alias is a valid alias format