From b499011d55c5e70f7042114dd5811f59c61eb6af Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Sun, 15 Sep 2024 22:55:26 +0200 Subject: [PATCH] xsecurelock-saver: fix stripping of font colors --- bin/xsecurelock-saver | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/xsecurelock-saver b/bin/xsecurelock-saver index 5ccff1d..a4f53eb 100755 --- a/bin/xsecurelock-saver +++ b/bin/xsecurelock-saver @@ -111,7 +111,7 @@ def on_overlay_draw(widget, cctx, ctx): # Weather Icons and we ignore font color change. The parsing is # quite basic. if ctx.weather: - data = re.sub(r"%{F[#\d+-]+?}", "", ctx.weather) + data = re.sub(r"%{F[#\da-f+-]+?}", "", ctx.weather) data = re.split(r"(%{T[1-9-]})", data) font = ctx.font_family cctx.move_to(20, wheight - 20)