small pixel drawing of a pufferfish vore

fix printDomain bug
Jes Olson j3s@c3f.net
Mon, 20 Mar 2023 22:05:27 -0700
commit

8ea611cdb8916ba9c3c236a9da22bc5668aa69b4

parent

834e8b4b94f692a1dee867a549be5d935fec6979

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M site.gosite.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]