1
0
Fork 0
mirror of https://github.com/tldr-pages/tldr.git synced 2025-08-10 09:35:54 +02:00

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
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -155,7 +155,7 @@ def set_alias_page(
) )
# Test if the alias page already exists # 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) original_command = get_alias_page(path, line)
if original_command == command: if original_command == command:
return "" return ""