mirror of
https://github.com/go-gitea/gitea.git
synced 2026-07-26 07:19:28 +02:00
Add .org condition to escapeSegToWeb
This commit is contained in:
@@ -76,7 +76,7 @@ func unescapeSegment(s string) (string, error) {
|
||||
}
|
||||
|
||||
func escapeSegToWeb(s string, hadDashMarker bool) string {
|
||||
if hadDashMarker || strings.Contains(s, "-") || strings.HasSuffix(s, ".md") {
|
||||
if hadDashMarker || strings.Contains(s, "-") || strings.HasSuffix(s, ".md") || strings.HasSuffix(s, ".org") {
|
||||
s = addDashMarker(s)
|
||||
} else {
|
||||
s = strings.ReplaceAll(s, " ", "-")
|
||||
|
||||
Reference in New Issue
Block a user