Fixed an issue where a curly brace would display in the window title when custom titles were enabled. (#512)

This commit is contained in:
Jas Singh
2024-11-16 08:35:58 -08:00
committed by GitHub
parent 0c6a19ab89
commit ec648a6352

View File

@@ -118,7 +118,7 @@ const filterTitle = (windowtitle: ActiveClient): Record<string, string> => {
['^$', '󰇄', 'Desktop'],
// Fallback icon
['(.+)', '󰣆', `${capitalizeFirstLetter(windowtitle.class)}}`],
['(.+)', '󰣆', `${capitalizeFirstLetter(windowtitle.class)}`],
];
const foundMatch = windowTitleMap.find((wt) => RegExp(wt[0]).test(windowtitle.class.toLowerCase()));