mirror of
				https://github.com/go-gitea/gitea.git
				synced 2025-10-31 21:28:11 +09: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