fix: prevent broken tiling, by not including empty stings into rules

This commit is contained in:
Mikhail Zolotukhin 2021-11-07 15:36:33 +03:00
parent 15f3507f7e
commit 9a5cbe498c

View File

@ -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;