Skip to content

Commit 687b40a

Browse files
author
Xiaozhou Li
committed
no f-string here because of backward compatibility
1 parent 1028c4b commit 687b40a

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Charon/filetypes/OpenPackagingConvention.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def _processAliases(self, virtual_path: str) -> str:
299299
# Replace all aliases.
300300
for regex, replacement in self._aliases.items():
301301
if regex.startswith("/"):
302-
expression = rf"^{regex}"
302+
expression = r"^" + regex
303303
else:
304304
expression = regex
305305
virtual_path = re.sub(expression, replacement, virtual_path)

0 commit comments

Comments
 (0)