mirror of
https://github.com/go-gitea/gitea
synced 2025-07-06 02:27:20 +00:00
Refactor "string truncate" (#32984)
This commit is contained in:
@ -173,7 +173,7 @@ func linkProcessor(ctx *RenderContext, node *html.Node) {
|
||||
|
||||
uri := node.Data[m[0]:m[1]]
|
||||
remaining := node.Data[m[1]:]
|
||||
if util.IsLikelySplitLeftPart(remaining) {
|
||||
if util.IsLikelyEllipsisLeftPart(remaining) {
|
||||
return
|
||||
}
|
||||
replaceContent(node, m[0], m[1], createLink(ctx, uri, uri, "" /*link*/))
|
||||
|
Reference in New Issue
Block a user