diff options
author | Sam James <sam@gentoo.org> | 2023-01-30 22:56:21 +0000 |
---|---|---|
committer | Sam James <sam@gentoo.org> | 2023-01-30 22:56:21 +0000 |
commit | 96f022bb6218b164f38a0a01764a9aee17e36154 (patch) | |
tree | 1e0cc125a62d0c2195fd8e53f4c606f45cdf70f4 | |
parent | BugUrl: consistency changes for Gerrit (diff) | |
download | bugzilla-gentoo-5.0.6.25.tar.gz bugzilla-gentoo-5.0.6.25.tar.bz2 bugzilla-gentoo-5.0.6.25.zip |
BugUrl: enhance Gerrit regexgentoo-5.0.6.25
Signed-off-by: Sam James <sam@gentoo.org>
-rw-r--r-- | Bugzilla/BugUrl/Gerrit.pm | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Bugzilla/BugUrl/Gerrit.pm b/Bugzilla/BugUrl/Gerrit.pm index 5e0ad0257..4cc278b7b 100644 --- a/Bugzilla/BugUrl/Gerrit.pm +++ b/Bugzilla/BugUrl/Gerrit.pm @@ -20,6 +20,13 @@ use parent qw(Bugzilla::BugUrl); sub should_handle { my ($class, $uri) = @_; + # https://codereview.qt-project.org/c/qt/qtlocation/+/123 + # https://chromium-review.googlesource.com/c/chromium/src/+/123 + # https://gerrit.libreoffice.org/c/core/+/123 + if ($uri->path =~ /c\/[[:alnum:]]+\/(([[:alnum:]]+)\/)?\+\/([[:digit:]]+)/) { + return 1; + } + # Gerrit Change URL: https://git.eclipse.org/r/#/c/26613/ # Gerrit Change URL, specific patch set: https://git.eclipse.org/r/#/c/26613/4 # https://git.eclipse.org/r/40031 |