1
0
Fork 0
mirror of https://codeberg.org/forgejo/forgejo.git synced 2024-11-25 08:59:31 -05:00

Merge pull request #1949 from TheHowl/develop

Fix bad issue links in non-readme markdown files
This commit is contained in:
Unknwon 2015-11-15 16:23:55 -05:00
commit 35d49d3b34

View file

@ -168,6 +168,9 @@ func RenderSha1CurrentPattern(rawBytes []byte, urlPrefix string) []byte {
}
func RenderIssueIndexPattern(rawBytes []byte, urlPrefix string) []byte {
if i := strings.Index(urlPrefix, "/src"); i != -1 {
urlPrefix = urlPrefix[:i]
}
ms := issueIndexPattern.FindAll(rawBytes, -1)
for _, m := range ms {
var space string