Skip to content

Commit

Permalink
fix: Removes negative lookahead from regex
Browse files Browse the repository at this point in the history
  • Loading branch information
zerbitx committed Jan 16, 2025
1 parent 92765ea commit da10dac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/devspace/configure/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ func (m *manager) AddImage(imageName, image, projectNamespace, dockerfile string
registryHostname, err = m.log.Question(&survey.QuestionOptions{
Question: "Please provide the registry hostname without the image path (e.g. gcr.io, ghcr.io, ecr.io)",
DefaultValue: "gcr.io",
ValidationRegexPattern: "^(?!-)[a-z0-9-]{1,63}(\\.[a-z0-9-]{1,63})*$",
ValidationRegexPattern: "^[a-z0-9][a-z0-9-]{0,62}(\\.[a-z0-9-]{1,63})*$",
ValidationMessage: "Error parsing registry hostname: must only include letters, digits, dots and hyphens and cannot exceed 253 characters.",
})
if err != nil {
Expand Down

0 comments on commit da10dac

Please sign in to comment.