mirror of
https://github.com/jech/galene.git
synced 2024-12-22 15:25:48 +01:00
Fix handling of subgroups in GetDescriptionNames.
This commit is contained in:
parent
1db15045a3
commit
86fac519a5
1 changed files with 6 additions and 4 deletions
|
@ -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
|
||||
},
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue