set-alias-page: fix regex

This commit is contained in:
Sebastiaan Speck
2024-11-05 20:39:01 +01:00
committed by GitHub
parent 60276104db
commit 316e672699

View File

@@ -155,7 +155,7 @@ def set_alias_page(
)
# Test if the alias page already exists
line = re.search(r">.*\.", text).group(0).replace(command, "(.+)")
line = re.search(r">.*", text).group(0).replace(command, "(.+)")
original_command = get_alias_page(path, line)
if original_command == command:
return ""