fix invalid escape in string

This commit is contained in:
nebula 2025-05-26 01:03:14 +00:00
parent 0fe9f21a6e
commit 420b443467

View File

@ -139,7 +139,7 @@ if len(sys.argv) > 1:
import urwid
current_user = getpwuid(os.getuid()).pw_name
name_re = compile(f"(?<!\w)[@~]?{current_user}")
name_re = compile(f"(?<!\\w)[@~]?{current_user}")
footer = "[c]reate [r]efresh [q]uit | scrolling: arrows, j/k, space, page up/down, ctrl-d/ctrl-u"
attrmap = [
("bold", "default,bold", "default"),