We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e48df3e commit 668a477Copy full SHA for 668a477
modules/setting/setting.go
@@ -1155,7 +1155,7 @@ func NewContext() {
1155
1156
extensionReg := regexp.MustCompile(`\.\w`)
1157
for _, sec := range Cfg.Section("markup").ChildSections() {
1158
- name := strings.TrimLeft(sec.Name(), "markup.")
+ name := strings.TrimPrefix(sec.Name(), "markup.")
1159
if name == "" {
1160
log.Warn("name is empty, markup " + sec.Name() + "ignored")
1161
continue
0 commit comments