Merge pull request #3818 from ckw017/ckw/fixseparatorregex

Fix separator regex to disallow empty strings
This commit is contained in:
Milos Gajdos 2023-01-31 08:15:13 +00:00 committed by GitHub
commit cf87e8d07e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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.