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()
if err == nil {
for _, id := range strings.Split(s, "\n") {
if strings.TrimSpace(id) != "" {
set.add(id)
if trimmed := strings.TrimSpace(id); trimmed != "" {
set.add(trimmed)
}
}
}