Skip to content

Commit ff7d0ac

Browse files
committed
Escape the \s in the rename parsing regex
1 parent 3525df4 commit ff7d0ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gptcmd/cli.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -638,7 +638,7 @@ def do_rename(self, arg):
638638
"""
639639
m = re.match(
640640
(
641-
f"^({'|'.join(self.__class__.KNOWN_ROLES)})\s+"
641+
f"^({'|'.join(self.__class__.KNOWN_ROLES)})\\s+"
642642
r"((?:-?\d+|\.)(?:\s+-?\d+|\s*\.)*)"
643643
r"(?:\s+([a-zA-Z0-9_-]{1,64}))?$"
644644
),

0 commit comments

Comments
 (0)