trim filter lines when adding
This commit is contained in:
parent
fd599da4bb
commit
4180a93b4a
|
@ -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)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user