Changed jira to handle branch names that are just numbers
[clearscm.git] / bin / jira
index ed2f582..c84f38f 100755 (executable)
--- 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;
+       }
     }
 }