Merge pull request #750 from hellodword/patch-1

enable comment of conf titles
This commit is contained in:
ffdfgdfg 2021-04-07 18:39:48 +08:00 committed by GitHub
commit 9d5c3fd870
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

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