From d1c186812e10d97752d42dc29bf275414e7536b4 Mon Sep 17 00:00:00 2001 From: "Chris K. Wong" Date: Thu, 22 Dec 2022 14:50:50 -0800 Subject: [PATCH] Fix separator regex Signed-off-by: Chris K. Wong --- reference/regexp.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reference/regexp.go b/reference/regexp.go index 2af73840b..65bc49d79 100644 --- a/reference/regexp.go +++ b/reference/regexp.go @@ -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.