From cb55f8fc468f705c12ac3eec5808d5df334c9a6c Mon Sep 17 00:00:00 2001 From: Ze Date: Thu, 22 Aug 2024 22:15:06 -0700 Subject: [PATCH] fix(verifypr): allow & and / (#30) --- scripts/verifypr/verify.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/verifypr/verify.go b/scripts/verifypr/verify.go index a4517501..5e186c01 100644 --- a/scripts/verifypr/verify.go +++ b/scripts/verifypr/verify.go @@ -16,7 +16,7 @@ import ( var ( optionalLink = `(fix\w*\s|close\w*\s|resolve\w*\s)?` // Optional issue linking prefix, see https://docs.github.com/en/issues/tracking-your-work-with-issues/linking-a-pull-request-to-an-issue. - descRegex = regexp.MustCompile(`^[a-z0-9 .-]+$`) // e.g. "add foo-bar" + descRegex = regexp.MustCompile(`^[a-z0-9 .&/-]+$`) // e.g. "add foo-bar" scopeRegex = regexp.MustCompile(`^[*\w]+(/[*\w]+)?$`) // e.g. "*" or "foo" or "foo/bar" issueRegexFull = regexp.MustCompile(`^` + optionalLink + `https://github.com/piplabs/story/issues/\d+$`) issueRegexShort = regexp.MustCompile(`^` + optionalLink + `#\d+$`) // e.g. "#1334"