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) {
if base[0] == '.' {
return nil
}
if strings.HasSuffix(base, ".json") {
names = append(names, strings.TrimSuffix(
base, ".json",
))
p, err := filepath.Rel(Directory, path)
if err != nil || !strings.HasSuffix(p, ".json") {
return nil
}
names = append(names, strings.TrimSuffix(
p, ".json",
))
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