From d39772341e123b445b8ed0f3f1cf347afd26925c Mon Sep 17 00:00:00 2001 From: topi314 Date: Mon, 2 Dec 2024 21:45:20 +0100 Subject: [PATCH] fix github mention regex --- routes/github_webhook.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/routes/github_webhook.go b/routes/github_webhook.go index 3df07ff..4c6c799 100644 --- a/routes/github_webhook.go +++ b/routes/github_webhook.go @@ -23,7 +23,7 @@ var ( prURLRegex = regexp.MustCompile(`https?://github\.com/(\w+/\w+)/pull/(\d+)`) prNumberRegex = regexp.MustCompile(`#(\d+)`) commitURLRegex = regexp.MustCompile(`https?://github\.com/\w+/\w+/commit/([a-f\d]{7})[a-f\d]+`) - mentionRegex = regexp.MustCompile(`@(\w+)`) + mentionRegex = regexp.MustCompile(`@([a-zA-Z0-9-]+)`) ) func HandleGithubWebhook(b *lavalinkbot.Bot) http.HandlerFunc {