forked from qt-creator/qt-creator
VCS: Capture more hashes with suffixes
Recognize multiple trailing carets and
tilde/number combinations too.
Amends 098ee51a9b
Change-Id: I91ea33f7e2dae61f18c2899c949034ebedca0157
Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
committed by
André Hartmann
parent
e4e5ffc492
commit
59f6c6282c
@@ -38,7 +38,8 @@ VcsOutputFormatter::VcsOutputFormatter() :
|
|||||||
m_regexp(
|
m_regexp(
|
||||||
"(https?://\\S*)" // https://codereview.org/c/1234
|
"(https?://\\S*)" // https://codereview.org/c/1234
|
||||||
"|(v[0-9]+\\.[0-9]+\\.[0-9]+[\\-A-Za-z0-9]*)" // v0.1.2-beta3
|
"|(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,}(?:\\.\\.[0-9a-f]{6,}" // 789acf or 123abc..456cde
|
||||||
|
"|\\^+|~\\d+)?)") // or 789acf^ or 123abc~99
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user