We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4bc16ea commit b824b5aCopy full SHA for b824b5a
1 file changed
pkg/paas/login.go
@@ -130,7 +130,7 @@ func getApiKey(in io.Reader, writer io.Writer) string {
130
}
131
132
func apiKeyValidator(input string) (bool, error) {
133
- var validApiKey = regexp.MustCompile(`^Apikey [a-z0-9\-]+$$`)
+ var validApiKey = regexp.MustCompile(`^(A|a)pikey [a-z0-9\-]+$$`)
134
if !validApiKey.MatchString(input) {
135
return false, errors.New("API token should be in format: 'Apikey xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx'")
136
0 commit comments