Commit 86fac519 authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Fix handling of subgroups in GetDescriptionNames.

parent 1db15045
...@@ -556,11 +556,13 @@ func GetDescriptionNames() ([]string, error) { ...@@ -556,11 +556,13 @@ func GetDescriptionNames() ([]string, error) {
if base[0] == '.' { if base[0] == '.' {
return nil return nil
} }
if strings.HasSuffix(base, ".json") { p, err := filepath.Rel(Directory, path)
names = append(names, strings.TrimSuffix( if err != nil || !strings.HasSuffix(p, ".json") {
base, ".json", return nil
))
} }
names = append(names, strings.TrimSuffix(
p, ".json",
))
return nil return nil
}, },
) )
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment