Skip to content

Commit

Permalink
Edit regex format for fixing Blusky mentions
Browse files Browse the repository at this point in the history
  • Loading branch information
arash77 authored Jun 11, 2024
1 parent 3136c33 commit a6621f5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion github_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
)
Expand Down

0 comments on commit a6621f5

Please sign in to comment.