fix(label): Improve false positive token filtering

This commit is contained in:
Michael Carlberg 2017-01-17 15:28:52 +01:00
parent 0f87d37137
commit e0e9cae2eb

View File

@ -171,7 +171,7 @@ namespace drawtypes {
// ignore false positives
// lemonbar tags %{...}
// trailing percentage signs %token%%
if (token_str[1] == '{' || token_str[1] == ' ') {
if (token_str.find_first_of("abdefghijklmnopqrstuvwxyz") != 1) {
line.erase(0, end);
continue;
}