[bugzilla-gnome-org-extensions] 4.4 migration: Put regexp capture into variable
- From: Krzesimir Nowak <krnowak src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [bugzilla-gnome-org-extensions] 4.4 migration: Put regexp capture into variable
- Date: Thu, 20 Nov 2014 22:25:06 +0000 (UTC)
commit d68e92779ffbec8c09a6201c3218c24da70383e7
Author: Krzesimir Nowak <qdlacz gmail com>
Date: Mon Nov 17 22:40:22 2014 +0100
4.4 migration: Put regexp capture into variable
lib/Ops.pm | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
---
diff --git a/lib/Ops.pm b/lib/Ops.pm
index 7630c06..7abe1fa 100644
--- a/lib/Ops.pm
+++ b/lib/Ops.pm
@@ -57,8 +57,9 @@ sub format_the_comment {
# there is only one match in the text we are linkifying, since they all
# get the same link.
if (${$text} =~ $REVIEW_RE) {
- my $review_link = get_review_link($bug, $1, "Review");
- my $attach_link = Bugzilla::Template::get_attachment_link($1, "attachment $1");
+ my $attachment_id = $1;
+ my $review_link = get_review_link($bug, $attachment_id, "Review");
+ my $attach_link = Bugzilla::Template::get_attachment_link($attachment_id, "attachment
$attachment_id");
push(@$regexes, { 'match' => $REVIEW_RE,
'replace' => "$review_link of $attach_link:"});
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]