diff --git a/obs-staging-bot/main.go b/obs-staging-bot/main.go index a811f68..380a1b2 100644 --- a/obs-staging-bot/main.go +++ b/obs-staging-bot/main.go @@ -368,7 +368,7 @@ func processPullNotification(gitea common.Gitea, thread *models.NotificationThre log.Panicln(err) } - rx := regexp.MustCompile(`^https://src\.(?:open)?suse\.(?:org|de)/api/v\d+/repos/(?[a-zA-Z0-9]+)/(?[_a-zA-Z0-9]+)/issues/(?[0-9]+)$`) + rx := regexp.MustCompile(`^https://src\.(?:open)?suse\.(?:org|de)/api/v\d+/repos/(?[-_a-zA-Z0-9]+)/(?[-_a-zA-Z0-9]+)/issues/(?[0-9]+)$`) notification := thread.Subject match := rx.FindStringSubmatch(notification.URL) if match == nil {