czepeko imports

This commit is contained in:
Ian Gulliver
2023-05-21 10:21:59 -07:00
parent d1016459e6
commit 45a27af724
5 changed files with 76 additions and 83 deletions

View File

@@ -35,5 +35,9 @@ func DirSig(root fs.FS) string {
func PathSig(path string) string {
parts := strings.Split(filepath.Base(path), ".")
return fmt.Sprintf("%s/*.%s", filepath.Dir(path), lo.Must(lo.Last(parts)))
if len(parts) == 1 {
return fmt.Sprintf("%s/%s", filepath.Dir(path), parts[0])
} else {
return fmt.Sprintf("%s/*.%s", filepath.Dir(path), lo.Must(lo.Last(parts)))
}
}