From 11d85f1ad596547a17bce056f529ecd9645b6180 Mon Sep 17 00:00:00 2001 From: Rhys Arkins <rhys@arkins.net> Date: Sun, 22 Jul 2018 10:26:00 +0200 Subject: [PATCH] fix(pr): remove double vv versions from pr body Fixes #2283, Fixes #2119 --- lib/workers/pr/index.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/workers/pr/index.js b/lib/workers/pr/index.js index 2bb6a0afc8..ed82d90b0a 100644 --- a/lib/workers/pr/index.js +++ b/lib/workers/pr/index.js @@ -175,6 +175,9 @@ async function ensurePr(prConfig) { } prBody = prBody.trim(); + // Clean up double v's + prBody = prBody.replace(/\bvv(\d)/g, 'v$1'); + // Generic replacements/link-breakers // Put a zero width space after every # followed by a digit -- GitLab