Skip to content

Commit 3058d29

Browse files
committed
[Github] Fix issue number escaping
1 parent 1d75d42 commit 3058d29

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

llvm/utils/git/github-automation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,9 @@ def escape_description(str):
5151
# https://github.com/github/markup/issues/1168#issuecomment-494946168
5252
str = html.escape(str, False)
5353
# '@' followed by alphanum is a user name
54-
str = re.sub("@(?=\w+)", "@<!-- -->", str)
54+
str = re.sub("@(?=\w)", "@<!-- -->", str)
5555
# '#' followed by digits is considered an issue number
56-
str = re.sub("#(?=\d+\s)", "#<!-- -->", str)
56+
str = re.sub("#(?=\d)", "#<!-- -->", str)
5757
return str
5858

5959

0 commit comments

Comments
 (0)