|
|
@@ -573,7 +573,8 @@ func trimFontHtml(text []rune) string { |
|
|
|
startRune := rune('<') |
|
|
|
endRune := rune('>') |
|
|
|
count := 0 |
|
|
|
for i := 0; i < len(text); i++ { |
|
|
|
i := 0 |
|
|
|
for ; i < len(text); i++ { |
|
|
|
if text[i] == startRune { //start < |
|
|
|
re := false |
|
|
|
j := i + 1 |
|
|
@@ -592,11 +593,14 @@ func trimFontHtml(text []rune) string { |
|
|
|
} else { |
|
|
|
return string(text[0:i]) |
|
|
|
} |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
return string(text) |
|
|
|
if count%2 == 1 { |
|
|
|
return string(text[0:i]) + "</font>" |
|
|
|
} else { |
|
|
|
return string(text[0:i]) |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
func trimHrefHtml(result string) string { |
|
|
@@ -1125,7 +1129,7 @@ func makePrivateIssueOrPr(issues []*models.Issue, res *SearchRes, Key string, la |
|
|
|
record["num_comments"] = issue.NumComments |
|
|
|
record["is_closed"] = issue.IsClosed |
|
|
|
record["updated_unix"] = issue.UpdatedUnix |
|
|
|
record["updated_html"] = timeutil.TimeSinceUnix(repo.UpdatedUnix, language) |
|
|
|
record["updated_html"] = timeutil.TimeSinceUnix(issue.UpdatedUnix, language) |
|
|
|
res.Result = append(res.Result, record) |
|
|
|
} |
|
|
|
} |
|
|
|