This commit is contained in:
@@ -70,11 +70,13 @@ func Main() {
|
|||||||
|
|
||||||
pattern := ".*"
|
pattern := ".*"
|
||||||
if depth := config.Query.Depth; depth > 0 {
|
if depth := config.Query.Depth; depth > 0 {
|
||||||
|
patterns := []string{}
|
||||||
pattern = ""
|
pattern = ""
|
||||||
for i := 0; i < depth; i++ {
|
for i := 0; i < depth; i++ {
|
||||||
pattern += "[^:]*:"
|
pattern += "[^:]*:"
|
||||||
|
patterns = append([]string{strings.Trim(pattern, ":")}, patterns...)
|
||||||
}
|
}
|
||||||
pattern = strings.Trim(pattern, ":")
|
pattern = strings.Join(patterns, "|")
|
||||||
}
|
}
|
||||||
group := ledger.GroupName(pattern)
|
group := ledger.GroupName(pattern)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user