feat(botfilter): add normalisePaths
This commit is contained in:
1 parent
66f6de689a
commit
b0af2468b7
1 file changed
+10
@@ -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
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user