mirror of
https://github.com/go-gitea/gitea.git
synced 2026-10-06 01:44:26 +02:00
Refactor "string truncate" (#32984)
This commit is contained in:
1 parent
594edad213
commit
9bfa9f450d
26 files changed
+199
-140
No files matched your search
@@ -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