flounder

A simple gemini site builder
Log | Files | Refs | README | LICENSE

commit 0bb7042433e0c2425c08c56cb9abf71c8cbf796d
parent fbd4cd275edc8abf859876a108e9a2d1abee19f6
Author: alex wennerberg <alex@alexwennerberg.com>
Date:   Thu,  4 Feb 2021 19:23:50 -0800

Fix warning kinda

Need to fix this with a regex

Diffstat:
Mutils.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/utils.go b/utils.go @@ -22,8 +22,8 @@ func getSchemedFlounderLinkLines(r io.Reader) []string { result := []string{} for scanner.Scan() { text := scanner.Text() - // TODO use actual parser. this could be a little wonky - if strings.HasPrefix(text, "=>") && strings.Contains(text, c.Host) && (strings.Contains(text, "gemini://") || strings.Contains(text, "https://")) { + // TODO use actual parser + if strings.HasPrefix(text, "=>") && strings.Contains(text, "."+c.Host) && (strings.Contains(text, "gemini://") || strings.Contains(text, "https://")) { result = append(result, text) } }