Skip to content

Commit 745c898

Browse files
Eisfunketechknowlogick
authored andcommitted
Fix trimming of markup section names (#4864)
Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
1 parent 38d8b8c commit 745c898

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/setting/setting.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1112,7 +1112,7 @@ func NewContext() {
11121112

11131113
extensionReg := regexp.MustCompile(`\.\w`)
11141114
for _, sec := range Cfg.Section("markup").ChildSections() {
1115-
name := strings.TrimLeft(sec.Name(), "markup.")
1115+
name := strings.TrimPrefix(sec.Name(), "markup.")
11161116
if name == "" {
11171117
log.Warn("name is empty, markup " + sec.Name() + "ignored")
11181118
continue

0 commit comments

Comments
 (0)