feat(botfilter): add normalisePaths

This commit is contained in:
hoelee committed 2026-01-16 10:05:00 +08:00
1 parent 66f6de689a
commit b0af2468b7
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
}