enable comment of conf titles

pull/750/head
hellodword 2021-02-14 10:49:48 +08:00
parent 63ba9774f9
commit f08d2eb500
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
}