diff --git a/util.go b/util.go index fab16ba4..61359290 100644 --- a/util.go +++ b/util.go @@ -60,3 +60,13 @@ func normaliseTokens(values []string) []string { return result } +func normalisePaths(values []string) []string { + result := make([]string, 0, len(values)) + for _, value := range values { + if path := normalisePath(value); path != "" { + result = append(result, path) + } + } + return result +} +