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:
parent
60276104db
commit
316e672699
1 changed files with 1 additions and 1 deletions
|
@ -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 ""
|
||||
|
|
Loading…
Add table
Reference in a new issue