aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Hassan Abouelela <[email protected]>2021-02-01 11:47:52 +0300
committerGravatar Hassan Abouelela <[email protected]>2021-02-01 11:47:52 +0300
commit4239b1d07cd0bba543aca8e7c77cee1d8f437b14 (patch)
treede336e8215713f909185adf00968e2678ba474ae
parentMerge pull request #567 from Shivansh-007/feature/link_issues (diff)
Fixes Issue Matching Regex
Changes the automatic issue matching regex to make it work for repos at the very beginning of messages.
-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 72ca6de4..73ebe547 100644
--- a/bot/exts/evergreen/issues.py
+++ b/bot/exts/evergreen/issues.py
@@ -184,7 +184,7 @@ class Issues(commands.Cog):
):
return
- message_repo_issue_map = re.findall(fr".+?({self.repo_regex})#(\d+)", message.content)
+ message_repo_issue_map = re.findall(fr"({self.repo_regex})#(\d+)", message.content)
links = []
if message_repo_issue_map: