From 44ad697f5040f51ef898fde900293bf7fc362330 Mon Sep 17 00:00:00 2001 From: wakumaku Date: Sun, 9 Feb 2025 22:26:13 +0100 Subject: [PATCH] trim spaces in section name --- zuliprc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/zuliprc.go b/zuliprc.go index db59c4b..0a99e2a 100644 --- a/zuliprc.go +++ b/zuliprc.go @@ -49,7 +49,7 @@ func parseZuliprcContent(b io.Reader) (Zuliprc, error) { if rxSection.MatchString(line) { section := rxSection.FindStringSubmatch(line)[1] z[section] = SectionData{} - currentSection = section + currentSection = strings.TrimSpace(section) continue }