Skip to content

Commit d4be340

Browse files
committed
Fixing valid-id in regex
Signed-off-by: rajasec <rajasec79@gmail.com>
1 parent 3237cad commit d4be340

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)