diff --git a/github_run.py b/github_run.py index 008f728..98adcbc 100644 --- a/github_run.py +++ b/github_run.py @@ -25,7 +25,7 @@ def comment(self, comment_text): # to avoid destroying links. # by accident. comment_text = re.sub( - r"([^a-zA-Z0-9_/])((?:[@][\w-]+)(?:[@][\w.-]+)?)", + r"([^a-zA-Z0-9_/])((?:[@][\w-]+)(?:[@.][\w.-]+)?)", lambda m: f"{m.group(1)}`{m.group(2)}`", comment_text )