From f08d2eb5001277719c641537a0d8c249ecf1d3a4 Mon Sep 17 00:00:00 2001 From: hellodword <46193371+hellodword@users.noreply.github.com> Date: Sun, 14 Feb 2021 10:49:48 +0800 Subject: [PATCH] enable comment of conf titles --- lib/config/config.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/config/config.go b/lib/config/config.go index 5ad613b..f7dec15 100644 --- a/lib/config/config.go +++ b/lib/config/config.go @@ -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 }