forked from qt-creator/qt-creator
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 <eike.ziller@qt.io> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
4569559898
commit
93e788fd19
@@ -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
|
||||
{
|
||||
}
|
||||
|
Reference in New Issue
Block a user