From 3c3c8ee9a963cbdfcf890f9c84a6200dc9b04f0c Mon Sep 17 00:00:00 2001 From: Kazunari Sasa Date: Sat, 20 May 2023 15:44:48 +0900 Subject: [PATCH] Change to allow slash --- config/profile.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config/profile.go b/config/profile.go index 46268e1..716b1d9 100644 --- a/config/profile.go +++ b/config/profile.go @@ -163,7 +163,7 @@ func validateProfile(profile Profile) error { if profile.ProfileName == "" { return fmt.Errorf("ProfileName must not be empty") } - if len(profile.UserName) > 16 || !regexp.MustCompile("^[a-zA-Z0-9]+$").MatchString(profile.UserName) { + if len(profile.UserName) > 16 || !regexp.MustCompile("^[a-zA-Z0-9/\\\\]+$").MatchString(profile.UserName) { return fmt.Errorf("UserName must be alphanumeric and no more than 8 characters") } if profile.SystemContext == "" {