diff --git a/tools/path.go b/tools/path.go index 016acae..560704b 100644 --- a/tools/path.go +++ b/tools/path.go @@ -18,5 +18,8 @@ func GetRelPath(path string) string { func PathToName(path string) string { path = strings.TrimPrefix(GetRelPath(path), "./") path = regexp.MustCompile(replaceChars).ReplaceAllString(path, "-") + if path[0] == '-' { + path = path[1:] + } return path }