From 1c093b6c98b7b0acbe874ff7e9791212b082d682 Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Mon, 19 Apr 2021 21:44:32 +0500 Subject: [PATCH] Fix anchor being shown when not needed --- link/link.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/link/link.go b/link/link.go index 1326118..4e3103f 100644 --- a/link/link.go +++ b/link/link.go @@ -113,8 +113,8 @@ func From(address, display, hyphaName string) *Link { if strings.HasPrefix(link.Display, "//") && len(link.Display) > 2 { link.Display = link.Display[2:] } + link.Display += link.Anchor } - link.Display += link.Anchor link.Address = address case strings.HasPrefix(address, "#"): link.Kind = LinkLocalHypha