From b116c94968d6b617afc02a7d0ffb940757054b6a Mon Sep 17 00:00:00 2001 From: Andrew DeFaria Date: Tue, 21 Mar 2023 17:22:00 +0000 Subject: [PATCH 1/1] Changed jira to handle branch names that are just numbers --- bin/jira | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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; + } } } -- 2.17.1