Skip to content

Commit

Permalink
Change to allow slash
Browse files Browse the repository at this point in the history
  • Loading branch information
kznrluk committed May 20, 2023
1 parent a1f63d3 commit 3c3c8ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/profile.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 == "" {
Expand Down

0 comments on commit 3c3c8ee

Please sign in to comment.