[Webkit-unassigned] [Bug 246692] REGRESSION: [bugs.webkit.org] Linkified commit identifiers don't go to specific commit

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue Oct 18 10:18:37 PDT 2022


https://bugs.webkit.org/show_bug.cgi?id=246692

--- Comment #2 from lingho at apple.com <lingho at apple.com> ---
Displayed text link uses matched group 1 while generate link uses matched group 2 due to another regex handing trac.webkit.org link.

sub _replace_reference {
    my $args = shift;
    my $text = $args->{matches}->[0];
    my $reference = $args->{matches}->[1];
    return qq{<a href="https://commits.webkit.org/$reference">$text</a>};
};

My last patch left out a parentesis pair causing group 2 to be NULL.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20221018/a8882822/attachment.htm>


More information about the webkit-unassigned mailing list