Permalink
Browse files

tpl: Prevent isBaseTemplate() from matching "baseof" in dir

Fixes #4809
  • Loading branch information...
anthonyfok authored and bep committed Jun 3, 2018
1 parent 0c6c98e commit c3115292a7f2d2623cb45054a361e997ad9330c9
Showing with 1 addition and 1 deletion.
  1. +1 −1 tpl/tplimpl/template.go
View
@@ -726,5 +726,5 @@ func isBackupFile(path string) bool {
const baseFileBase = "baseof"
func isBaseTemplate(path string) bool {
return strings.Contains(path, baseFileBase)
return strings.Contains(filepath.Base(path), baseFileBase)
}

0 comments on commit c311529

Please sign in to comment.