feat(botfilter): add normalisePaths

This commit is contained in:
hoelee committed 2026-01-14 10:05:00 +08:00
1 parent d504b07e3c
commit 3ed08431b4
1 file changed
+10
+10
View File
@@ -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
}