Improve test (#2454)
* adjust regex to caught corner case * fix wrong lines
This commit is contained in:
@@ -49,7 +49,7 @@ func TestDuplicatedLinks(t *testing.T) {
|
||||
|
||||
var (
|
||||
reContainsLink = regexp.MustCompile(`\* \[.*\]\(.*\)`)
|
||||
reOnlyLink = regexp.MustCompile(`\* \[.*\]\(.*\)$`)
|
||||
reOnlyLink = regexp.MustCompile(`\* \[.*\]\([^()]*\)$`)
|
||||
reLinkWithDescription = regexp.MustCompile(`\* \[.*\]\(.*\) - \S.*[\.\!]`)
|
||||
)
|
||||
|
||||
|
Reference in New Issue
Block a user