From 5ce9a955a09ea19ec2b4d1619c5b6178d711c16d Mon Sep 17 00:00:00 2001 From: Ridwan Mulyadi Date: Thu, 9 May 2024 15:22:01 +0700 Subject: [PATCH] keyd-application-mapper: Fix string escape bug causing issues on some platforms (#649) --- scripts/keyd-application-mapper | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/keyd-application-mapper b/scripts/keyd-application-mapper index 1de2189..91c4c93 100755 --- a/scripts/keyd-application-mapper +++ b/scripts/keyd-application-mapper @@ -527,7 +527,7 @@ def normalize_class(s): return re.sub('[^A-Za-z0-9]+', '-', s).strip('-').lower() def normalize_title(s): - return re.sub('[\W_]+', '-', s).strip('-').lower() + return re.sub(r'[\W_]+', '-', s).strip('-').lower() last_mtime = os.path.getmtime(CONFIG_PATH) def on_window_change(cls, title):