From 8fc16194337315404ac849645bc11edfd89f0e8c Mon Sep 17 00:00:00 2001 From: Zero King Date: Thu, 26 Apr 2018 09:27:09 +0000 Subject: [PATCH] pr: Fix Travis log regex --- pr/webhook/travis.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pr/webhook/travis.go b/pr/webhook/travis.go index dd8cda9..0d10198 100644 --- a/pr/webhook/travis.go +++ b/pr/webhook/travis.go @@ -154,7 +154,7 @@ func (receiver *Receiver) handleTravisWebhook(payload TravisWebhookPayload) { lintDone = true } if strings.HasSuffix(pName, "-pastebin") { - pastebinRegex := regexp.MustCompile(`^port-(.*)(-dep)?-install-output-(success|fail)-pastebin$`) + pastebinRegex := regexp.MustCompile(`^port-(.*?)(-dep)?-install-output-(success|fail)-pastebin$`) pbInfo := pastebinRegex.FindStringSubmatch(pName) if pbInfo == nil { continue