loading up the forgejo repo on tangled to test page performance
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix filePreviewPattern

+1 -1
+1 -1
modules/markup/html.go
··· 65 65 validLinksPattern = regexp.MustCompile(`^[a-z][\w-]+://`) 66 66 67 67 // filePreviewPattern matches "http://domain/org/repo/src/commit/COMMIT/filepath#L1-L2" 68 - filePreviewPattern = regexp.MustCompile(`https?://((?:\S+/){4,5})src/commit/([0-9a-f]{4,64})/(\S+)#(L\d+(?:-L\d+)?)`) 68 + filePreviewPattern = regexp.MustCompile(`https?://((?:\S+/){3})src/commit/([0-9a-f]{4,64})/(\S+)#(L\d+(?:-L\d+)?)`) 69 69 70 70 // While this email regex is definitely not perfect and I'm sure you can come up 71 71 // with edge cases, it is still accepted by the CommonMark specification, as