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

This commit is contained in:
2025-04-17 14:01:38 +03:00
parent bb314d725c
commit 57d8b98212

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