From b0af2468b7935d9fb4572bba97b27aeac2acd384 Mon Sep 17 00:00:00 2001 From: hoelee Date: Fri, 16 Jan 2026 10:05:00 +0800 Subject: [PATCH] feat(botfilter): add normalisePaths --- util.go | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 +} +