aboutsummaryrefslogtreecommitdiffstats
path: root/bot/exts
diff options
context:
space:
mode:
authorGravatar Chris <[email protected]>2021-04-08 19:28:59 +0100
committerGravatar Chris <[email protected]>2021-04-08 19:28:59 +0100
commita36a58d81b64412458a7b51fbfb4a37e88a060fe (patch)
treefb782bd0aec2349e1d383b49f53b8852fce1f77b /bot/exts
parentMerge branch 'akarys/630/automatic-linking-everywhere' of github.com:python-d... (diff)
Add word boundaries to the issues regex
Diffstat (limited to 'bot/exts')
-rw-r--r--bot/exts/evergreen/issues.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/exts/evergreen/issues.py b/bot/exts/evergreen/issues.py
index 0d43326d..b653f7ae 100644
--- a/bot/exts/evergreen/issues.py
+++ b/bot/exts/evergreen/issues.py
@@ -226,7 +226,7 @@ class Issues(commands.Cog):
return
# `issues` will hold a list of two element tuples `(repository, issue_number)`
- issues = re.findall(fr"({self.repo_regex})#(\d+)", message.content)
+ issues = re.findall(fr"\b({self.repo_regex})#(\d+)\b", message.content)
links = []
if issues: