Skip to content

Commit

Permalink
trim spaces in section name
Browse files Browse the repository at this point in the history
  • Loading branch information
wakumaku committed Feb 9, 2025
1 parent e27f91e commit 44ad697
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion zuliprc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 44ad697

Please sign in to comment.