From e0e9cae2eb3039bb4f9897318e931578719929e1 Mon Sep 17 00:00:00 2001 From: Michael Carlberg Date: Tue, 17 Jan 2017 15:28:52 +0100 Subject: [PATCH] fix(label): Improve false positive token filtering --- src/drawtypes/label.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawtypes/label.cpp b/src/drawtypes/label.cpp index f4348d5e..51dde741 100644 --- a/src/drawtypes/label.cpp +++ b/src/drawtypes/label.cpp @@ -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; }