mirror of
https://codeberg.org/forgejo/forgejo.git
synced 2024-11-08 18:04:14 +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