(profileParents []string)
| 334 | } |
| 335 | |
| 336 | func filterProfileParents(profileParents []string) []string { |
| 337 | return util.Filter(profileParents, func(oidx int, os string) bool { |
| 338 | return !util.Contains(profileParents, func(iidx int, is string) bool { |
| 339 | return os == is |
| 340 | }, oidx+1) |
| 341 | }) |
| 342 | } |
| 343 | |
| 344 | func sanitizeMatchExpression(expression string) string { |
| 345 | exp := strings.TrimPrefix(expression, "^") |