From 96f022bb6218b164f38a0a01764a9aee17e36154 Mon Sep 17 00:00:00 2001 From: Sam James Date: Mon, 30 Jan 2023 22:56:21 +0000 Subject: BugUrl: enhance Gerrit regex Signed-off-by: Sam James --- Bugzilla/BugUrl/Gerrit.pm | 7 +++++++ 1 file changed, 7 insertions(+) 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 -- cgit v1.2.3-65-gdbad