Skip to content

Commit

Permalink
enable comment of conf titles
Browse files Browse the repository at this point in the history
  • Loading branch information
hellodword committed Feb 14, 2021
1 parent 63ba977 commit f08d2eb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/config/config.go
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ func delLocalService(s string) *LocalServer {

func getAllTitle(content string) (arr []string, err error) {
var re *regexp.Regexp
re, err = regexp.Compile(`\[.+?\]`)
re, err = regexp.Compile(`(?m)^\[[^\[\]\r\n]+\]`)
if err != nil {
return
}
Expand Down

0 comments on commit f08d2eb

Please sign in to comment.