Don't recognize typeInfo for lines without spaces

Signed-off-by: kim (grufwub) <grufwub@gmail.com>
master
kim (grufwub) 4 years ago
parent b151bc8eba
commit 5c20543c74

@ -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

Loading…
Cancel
Save