From 57d8b98212d3d3ac573f7974d3ac1742a9cf2de1 Mon Sep 17 00:00:00 2001 From: alfred-mk Date: Thu, 17 Apr 2025 14:01:38 +0300 Subject: [PATCH] updated the alias regex to only pass proper alphanumeric, dot-separated aliases --- identity/alias.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/identity/alias.go b/identity/alias.go index 0971c48..81a0a31 100644 --- a/identity/alias.go +++ b/identity/alias.go @@ -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