trim filter lines when adding

This commit is contained in:
gutmet 2020-10-15 14:56:43 +02:00
parent fd599da4bb
commit 4180a93b4a

View File

@ -839,8 +839,8 @@ func setFilters(appDir string) {
set := makeHashset() set := makeHashset()
if err == nil { if err == nil {
for _, id := range strings.Split(s, "\n") { for _, id := range strings.Split(s, "\n") {
if strings.TrimSpace(id) != "" { if trimmed := strings.TrimSpace(id); trimmed != "" {
set.add(id) set.add(trimmed)
} }
} }
} }