mirror of
https://github.com/distribution/reference.git
synced 2026-10-28 10:15:29 +08:00
Fix separator regex
Signed-off-by: Chris K. Wong <chriskw.xyz@gmail.com>
This commit is contained in:
1 parent
b57c0e4614
commit
e60f3474a5
1 file changed
+1
-1
@@ -50,7 +50,7 @@ const (
|
||||
// supporting repeated dash was added. Additionally double underscore is
|
||||
// now allowed as a separator to loosen the restriction for previously
|
||||
// supported names.
|
||||
separator = `(?:[._]|__|[-]*)`
|
||||
separator = `(?:[._]|__|[-]+)`
|
||||
|
||||
// localhost is treated as a special value for domain-name. Any other
|
||||
// domain-name without a "." or a ":port" are considered a path component.
|
||||
|
||||
Reference in new issue
Block a user