From 93e788fd196bf90ea10ff8621ae6233f26d44e0e Mon Sep 17 00:00:00 2001 From: Andre Hartmann Date: Sun, 5 Apr 2020 21:27:28 +0200 Subject: [PATCH] VcsOutputFormatter: Allow ranges with three dots also This can, for example happen after a forced push to Gitlab. The VCS output looks like this in that case: + 7c145ae...c301cc6 master -> master (forced update) Change-Id: I84bec1a6cf2bf875732461f767ebbf4703cdbadb Reviewed-by: Eike Ziller Reviewed-by: Orgad Shaneh --- src/plugins/vcsbase/vcsoutputformatter.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/vcsbase/vcsoutputformatter.cpp b/src/plugins/vcsbase/vcsoutputformatter.cpp index 1ee56f61676..07d7c19375d 100644 --- a/src/plugins/vcsbase/vcsoutputformatter.cpp +++ b/src/plugins/vcsbase/vcsoutputformatter.cpp @@ -38,7 +38,7 @@ VcsOutputFormatter::VcsOutputFormatter() : m_regexp( "(https?://\\S*)" // https://codereview.org/c/1234 "|(v[0-9]+\\.[0-9]+\\.[0-9]+[\\-A-Za-z0-9]*)" // v0.1.2-beta3 - "|([0-9a-f]{6,}(?:\\.\\.[0-9a-f]{6,}" // 789acf or 123abc..456cde + "|([0-9a-f]{6,}(?:\\.{2,3}[0-9a-f]{6,}" // 789acf or 123abc..456cde "|\\^+|~\\d+)?)") // or 789acf^ or 123abc~99 { }