Skip to content

Commit

Permalink
fix(verifypr): allow & and / (#30)
Browse files Browse the repository at this point in the history
  • Loading branch information
edisonz0718 authored Aug 23, 2024
1 parent 04ab772 commit cb55f8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/verifypr/verify.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

0 comments on commit cb55f8f

Please sign in to comment.