mirror of
https://github.com/ehang-io/nps.git
synced 2026-10-31 16:52:12 +08:00
enable comment of conf titles
This commit is contained in:
1 parent
63ba9774f9
commit
f08d2eb500
1 file changed
+1
-1
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user