Skip to content

Commit 54a6e56

Browse files
author
Mrunal Patel
committed
Merge pull request #647 from rajasec/valid-id
Fixing valid-id in regex
2 parents b336a84 + d4be340 commit 54a6e56

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

libcontainer/factory_linux.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const (
2626
)
2727

2828
var (
29-
idRegex = regexp.MustCompile(`^[\w_-]+$`)
29+
idRegex = regexp.MustCompile(`^[\w-\.]+$`)
3030
maxIdLen = 1024
3131
)
3232

0 commit comments

Comments
 (0)