Skip to content

Commit

Permalink
Fix tag key regex
Browse files Browse the repository at this point in the history
  • Loading branch information
nsavoire committed Oct 24, 2024
1 parent a3cd3bb commit 7635875
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ import (
"golang.org/x/sys/unix"
)

var ValidTagKeyRegex = regexp.MustCompile(`^a-zA-Z[a-zA-Z0-9-._/]+$`)
var ValidTagKeyRegex = regexp.MustCompile(`^[a-zA-Z][a-zA-Z0-9-._/]+$`)
var ValidTagValueRegex = regexp.MustCompile(`^[a-zA-Z0-9-:._/]*$`)

func getKernelVersion() (string, error) {
Expand Down

0 comments on commit 7635875

Please sign in to comment.