fix printDomain bug
Jes Olson j3s@c3f.net
Mon, 20 Mar 2023 22:05:27 -0700
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
site.go
→
site.go
@@ -312,7 +312,7 @@ return parsedURL.Hostname()
} // do our best to trim it manually if url parsing fails trimmedStr := strings.TrimSpace(rawURL) - trimmedStr = strings.TrimPrefix(rawURL, "http://") + trimmedStr = strings.TrimPrefix(trimmedStr, "http://") trimmedStr = strings.TrimPrefix(trimmedStr, "https://") return strings.Split(trimmedStr, "/")[0]