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