-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Do not render truncated links in markdown #32980
Conversation
ffca29f
to
4bf8172
Compare
@@ -14,6 +14,10 @@ const ( | |||
asciiEllipsis = "..." | |||
) | |||
|
|||
func IsLikelySplitLeftPart(s string) bool { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
IsLikelyTruncated
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nope, "Truncated" doesn't have such "..."
It matches the original function below "SplitStringAtByteN"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we can refactor these "truncate" related function in the future together, while keep this PR simple to backport
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-> Refactor "string truncate" #32984
Backport #32980 by wxiaoguang Co-authored-by: wxiaoguang <[email protected]>
* giteaofficial/main: Do not render truncated links in markdown (go-gitea#32980) Use `CloseIssue` and `ReopenIssue` instead of `ChangeStatus` (go-gitea#32467)
No description provided.