We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 38d8b8c commit 745c898Copy full SHA for 745c898
modules/setting/setting.go
@@ -1112,7 +1112,7 @@ func NewContext() {
1112
1113
extensionReg := regexp.MustCompile(`\.\w`)
1114
for _, sec := range Cfg.Section("markup").ChildSections() {
1115
- name := strings.TrimLeft(sec.Name(), "markup.")
+ name := strings.TrimPrefix(sec.Name(), "markup.")
1116
if name == "" {
1117
log.Warn("name is empty, markup " + sec.Name() + "ignored")
1118
continue
0 commit comments