Skip to content

Commit 61e6ded

Browse files
chore: allow dot in credential context
1 parent 266bc58 commit 61e6ded

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/credentials/store.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -195,7 +195,7 @@ func validateCredentialCtx(ctxs []string) error {
195195
}
196196

197197
// check alphanumeric
198-
r := regexp.MustCompile("^[-a-zA-Z0-9]+$")
198+
r := regexp.MustCompile("^[-a-zA-Z0-9.]+$")
199199
for _, c := range ctxs {
200200
if !r.MatchString(c) {
201201
return fmt.Errorf("credential contexts must be alphanumeric")

0 commit comments

Comments
 (0)