Skip to content

Commit

Permalink
Merge pull request #3818 from ckw017/ckw/fixseparatorregex
Browse files Browse the repository at this point in the history
Fix separator regex to disallow empty strings
  • Loading branch information
milosgajdos committed Jan 31, 2023
2 parents 9b62973 + d1c1868 commit cf87e8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion reference/regexp.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit cf87e8d

Please sign in to comment.