diff options
author | Nicolas Lenz <nicolas@eisfunke.com> | 2018-09-04 02:59:02 +0200 |
---|---|---|
committer | techknowlogick <techknowlogick@users.noreply.github.com> | 2018-09-03 20:59:02 -0400 |
commit | 668a477c6984991124a415ce81a97fc7eb429781 (patch) | |
tree | 1281b3904c2afe583967d149d25a0ae3f8e9b193 /modules | |
parent | e48df3ee47cca7cbf369f429c188332982a4b8e7 (diff) | |
download | gitea-668a477c6984991124a415ce81a97fc7eb429781.tar.gz gitea-668a477c6984991124a415ce81a97fc7eb429781.zip |
Fix trimming of markup section names (#4863)
Signed-off-by: Nicolas Lenz <nicolas@eisfunke.com>
Diffstat (limited to 'modules')
-rw-r--r-- | modules/setting/setting.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/setting/setting.go b/modules/setting/setting.go index 5d0354b110..3f3393f66c 100644 --- a/modules/setting/setting.go +++ b/modules/setting/setting.go @@ -1155,7 +1155,7 @@ func NewContext() { extensionReg := regexp.MustCompile(`\.\w`) for _, sec := range Cfg.Section("markup").ChildSections() { - name := strings.TrimLeft(sec.Name(), "markup.") + name := strings.TrimPrefix(sec.Name(), "markup.") if name == "" { log.Warn("name is empty, markup " + sec.Name() + "ignored") continue |