Skip to content

Commit

Permalink
fix github mention regex
Browse files Browse the repository at this point in the history
  • Loading branch information
topi314 committed Dec 2, 2024
1 parent 377b724 commit d397723
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion routes/github_webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit d397723

Please sign in to comment.