Skip to content

Commit

Permalink
Merge pull request #750 from hellodword/patch-1
Browse files Browse the repository at this point in the history
enable comment of conf titles
  • Loading branch information
ffdfgdfg authored Apr 7, 2021
2 parents d331db7 + f08d2eb commit 9d5c3fd
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 9d5c3fd

Please sign in to comment.