From 5c0cba69dc93602fcbe9b76d017a88fd9c827f1c Mon Sep 17 00:00:00 2001
From: Christoph Manns <mannsc@strato.de>
Date: Fri, 27 Sep 2019 14:52:31 +0200
Subject: [PATCH] fix(golang): Improve go datasource sourceMatch regex (#4552)

---
 lib/datasource/go/index.ts | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/datasource/go/index.ts b/lib/datasource/go/index.ts
index 21e5a84f38..9bbfde96b5 100644
--- a/lib/datasource/go/index.ts
+++ b/lib/datasource/go/index.ts
@@ -30,7 +30,7 @@ async function getDatasource(name: string): Promise<DataSource | null> {
       hostType: 'go',
     })).body;
     const sourceMatch = res.match(
-      new RegExp(`<meta name="go-source" content="${name}\\s+([^\\s]+)`)
+      new RegExp(`<meta\\s+name="go-source"\\s+content="${name}\\s+([^\\s]+)`)
     );
     if (sourceMatch) {
       const [, goSourceUrl] = sourceMatch;
-- 
GitLab