From 5c20543c74c6b9422802772e028659df1521e2c8 Mon Sep 17 00:00:00 2001 From: "kim (grufwub)" Date: Wed, 21 Oct 2020 17:09:40 +0100 Subject: [PATCH] Don't recognize typeInfo for lines without spaces Signed-off-by: kim (grufwub) --- gopher/itemtype.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/gopher/itemtype.go b/gopher/itemtype.go index 07fd169..1e7750e 100644 --- a/gopher/itemtype.go +++ b/gopher/itemtype.go @@ -177,10 +177,14 @@ func parseLineType(line string) ItemType { } return typeUnknown } else if !strings.Contains(line, "\t") { - // The only accepted types for length >= 1 and with a tab + // The only accepted types for length >= 1 and without a tab if t == typeComment || t == typeTitle || - t == typeInfo || +// Not typeInfo, otherwise this +// messes with the ability for people +// to have lines with words beginning 'i' +// +// t == typeInfo || t == typeHiddenFile || t == typeSubGophermap { return t