feat(botfilter): add normalisePaths
This commit is contained in:
1 parent
d504b07e3c
commit
3ed08431b4
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