X-Git-Url: https://defaria.com/gitweb/?a=blobdiff_plain;f=bin%2Fjira;h=c84f38ffcf4258c7c20988b6b4ec8c662f2016a7;hb=b116c94968d6b617afc02a7d0ffb940757054b6a;hp=ed2f582af83e71a09cecfa8641ec876aa37405d4;hpb=56d3fe8351c2eb173541afeb9445059fa452d73e;p=clearscm.git diff --git a/bin/jira b/bin/jira index ed2f582..c84f38f 100755 --- a/bin/jira +++ b/bin/jira @@ -142,9 +142,9 @@ unless ( $ARGV[0] ) { my ( $status, @output ) = Utils::Execute("git branch --show-current 2>&1"); unless ($status) { - $output[0] =~ /\w+-(\d+)/; - - $ARGV[0] = $1; + if ($output[0] =~ /(\w+-)*(\d+)/) { + $ARGV[0] = $2; + } } }