From: Andrew DeFaria Date: Tue, 21 Mar 2023 17:22:00 +0000 (+0000) Subject: Changed jira to handle branch names that are just numbers X-Git-Url: https://defaria.com/gitweb/?a=commitdiff_plain;ds=sidebyside;h=b116c94968d6b617afc02a7d0ffb940757054b6a;p=clearscm.git Changed jira to handle branch names that are just numbers --- 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; + } } }