From 02e7cd2bfc86a6cf5d3ee79a8c3a75caa8c90277 Mon Sep 17 00:00:00 2001 From: bouncepaw Date: Sat, 6 Feb 2021 21:16:21 +0500 Subject: [PATCH] Strip extra whitespace from links --- link/link.go | 1 + 1 file changed, 1 insertion(+) diff --git a/link/link.go b/link/link.go index 6c7e7b8..8771ca9 100644 --- a/link/link.go +++ b/link/link.go @@ -82,6 +82,7 @@ func (l *Link) ImgSrc() string { // From returns a Link object given these `address` and `display` on relative to given `hyphaName`. func From(address, display, hyphaName string) *Link { + address = strings.TrimSpace(address) link := Link{ SrcAddress: address, SrcDisplay: display,