Skip to content

Commit 20dcad3

Browse files
authored
Project: fix regex (#12283)
This was only used for the email notification about the SSH keys.
1 parent da1f31f commit 20dcad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readthedocs/projects/models.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -911,7 +911,7 @@ def repository_html_url(self):
911911
if self.remote_repository:
912912
return self.remote_repository.html_url
913913

914-
ssh_url_pattern = re.compile(r"^(?P<user>.+)@(?P<host>.+):(?<repo>.+)$")
914+
ssh_url_pattern = re.compile(r"^(?P<user>.+)@(?P<host>.+):(?P<repo>.+)$")
915915
match = ssh_url_pattern.match(self.repo)
916916
if match:
917917
return f"https://{match.group('host')}/{match.group('repo')}"

0 commit comments

Comments
 (0)