Skip to content

Commit edbce6f

Browse files
committed
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 <[email protected]>
1 parent 4ca887f commit edbce6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bin/scripts/name_parser/FontnameTools.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ def postscript_char_filter(name):
211211
( '(.*dyslexic ?m)ono', r'\1'), # Open Dyslexic Mono -> Open Dyslexic M
212212
( '(overpass ?m)ono', r'\1'), # Overpass Mono -> Overpass M
213213
( '(proggyclean) ?tt', r'\1'), # Remove TT from ProggyClean
214-
( '(terminess) ?(ttf)', r'\1'), # Remove TTF from Terminus (after renamed to Terminess)
214+
( r'(terminess) ?\(ttf\)', r'\1'), # Remove TTF from Terminus (after renamed to Terminess)
215215
( '(.*ne)on', r'\1'), # Monaspace shorten face name
216216
( '(.*ar)gon', r'\1'), # Monaspace shorten face name
217217
( '(.*kr)ypton', r'\1'), # Monaspace shorten face name

0 commit comments

Comments
 (0)