Skip to content
Snippets Groups Projects
Commit 438de576 authored by Sebastian Bittrich's avatar Sebastian Bittrich
Browse files

trim() for safety in filter declaration

parent 3f765aed
No related branches found
No related tags found
No related merge requests found
......@@ -139,6 +139,7 @@ export namespace Category {
const field_blacklist: string[] = [];
for (let d of directives.split(/[\r\n]+/)) {
d = d.trim();
// allow for empty lines in config
if (d.length === 0) continue;
// let ! denote blacklisted entries
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment