Skip to content

Commit

Permalink
fix: prevent broken tiling, by not including empty stings into rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Mikhail Zolotukhin committed Nov 8, 2021
1 parent 15f3507 commit 9a5cbe4
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/kwinscript/config.ts
Expand Up @@ -129,7 +129,11 @@ export class ConfigImpl implements Config {
if (!str || typeof str !== "string") {
return [];
}
return str.split(",").map((part) => part.trim());
// Split by commas, trim and remove empty strings
return str
.split(",")
.map((part) => part.trim())
.filter((i) => i);
}

this.kwinApi = kwinApi;
Expand Down

0 comments on commit 9a5cbe4

Please sign in to comment.