mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-12-01 05:36:19 +01:00
Remove unneeded case for a trailing dot
This commit is contained in:
parent
d6428f92ce
commit
069d87b80f
1 changed files with 0 additions and 8 deletions
|
@ -62,14 +62,6 @@ func NewFilePreview(ctx *RenderContext, node *html.Node, locale translation.Loca
|
|||
preview.start = m[0]
|
||||
preview.end = m[1]
|
||||
|
||||
// If url ends in '.', it's very likely that it is not part of the
|
||||
// actual url but used to finish a sentence.
|
||||
if strings.HasSuffix(preview.urlFull, ".") {
|
||||
preview.end--
|
||||
preview.urlFull = preview.urlFull[:len(preview.urlFull)-1]
|
||||
hash = hash[:len(hash)-1]
|
||||
}
|
||||
|
||||
projPathSegments := strings.Split(projPath, "/")
|
||||
fileContent, err := DefaultProcessorHelper.GetRepoFileContent(
|
||||
ctx.Ctx,
|
||||
|
|
Loading…
Reference in a new issue