mirror of
https://github.com/ehang-io/nps.git
synced 2025-07-03 04:53:50 +00:00
Merge pull request #750 from hellodword/patch-1
enable comment of conf titles
This commit is contained in:
commit
9d5c3fd870
@ -302,7 +302,7 @@ func delLocalService(s string) *LocalServer {
|
|||||||
|
|
||||||
func getAllTitle(content string) (arr []string, err error) {
|
func getAllTitle(content string) (arr []string, err error) {
|
||||||
var re *regexp.Regexp
|
var re *regexp.Regexp
|
||||||
re, err = regexp.Compile(`\[.+?\]`)
|
re, err = regexp.Compile(`(?m)^\[[^\[\]\r\n]+\]`)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user