From edbce6f1e3c9cff45167750e76e4cf02b7dc6099 Mon Sep 17 00:00:00 2001 From: Fini Jastrow Date: Mon, 6 May 2024 22:38:06 +0200 Subject: [PATCH] font-patcher: Fix escaping fix [why] With Terminess the regex needs to match literal parens, this has been misunderstood with the last commit. [how] Revert the previous commit for Terminess, and use a raw string as solution instead (because we usually use raw strings for regexes). Signed-off-by: Fini Jastrow --- bin/scripts/name_parser/FontnameTools.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/scripts/name_parser/FontnameTools.py b/bin/scripts/name_parser/FontnameTools.py index f056feb1b..3c9b89c3c 100644 --- a/bin/scripts/name_parser/FontnameTools.py +++ b/bin/scripts/name_parser/FontnameTools.py @@ -211,7 +211,7 @@ class FontnameTools: ( '(.*dyslexic ?m)ono', r'\1'), # Open Dyslexic Mono -> Open Dyslexic M ( '(overpass ?m)ono', r'\1'), # Overpass Mono -> Overpass M ( '(proggyclean) ?tt', r'\1'), # Remove TT from ProggyClean - ( '(terminess) ?(ttf)', r'\1'), # Remove TTF from Terminus (after renamed to Terminess) + ( r'(terminess) ?\(ttf\)', r'\1'), # Remove TTF from Terminus (after renamed to Terminess) ( '(.*ne)on', r'\1'), # Monaspace shorten face name ( '(.*ar)gon', r'\1'), # Monaspace shorten face name ( '(.*kr)ypton', r'\1'), # Monaspace shorten face name