Commit e43dd961 authored by Kiyoshi Aman's avatar Kiyoshi Aman
Browse files

Chessa::Bug{,::Adelie}: fix thinko

parent ef896426
......@@ -118,7 +118,7 @@ sub parse {
$sigil = quotemeta '$';
}
case (/@[a-fA-F0-9]{7,}/) {
$type = 'commit';
$type = 'commits';
$sigil = quotemeta '@';
}
default {
......@@ -126,7 +126,7 @@ sub parse {
}
}
($project, $num) = split /$sigil/, $word;
if ($type eq 'commit') {
if ($type eq 'commits') {
$num =~ s/^([a-fA-F0-9]+).*/$1/;
} else {
$num =~ s/^(\d+).*/$1/;
......
......@@ -116,7 +116,7 @@ sub handle {
$func = \&issue;
} case ('merge_requests') {
$func = \&mr;
} case ('commit') {
} case ('commits') {
$base .= 'repository/';
$func = \&commit;
} case ('snippets') {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment