1
0
mirror of https://github.com/robbyrussell/oh-my-zsh.git synced 2025-12-06 07:20:40 +01:00

fix(jira): Make prefix check on "jira branch" command case-insensitive (#8799)

* Make prefix check on "jira branch" command case-insensitive

* Update plugins/jira/jira.plugin.zsh

Co-authored-by: Marc Cornellà <hello@mcornella.com>

* Fixing tabs to spaces

Co-authored-by: Robby Russell <robby@planetargon.com>
Co-authored-by: Marc Cornellà <hello@mcornella.com>
This commit is contained in:
Alex
2023-01-09 13:30:08 -06:00
committed by GitHub
parent bc36043e8f
commit 9f31951019
2 changed files with 6 additions and 1 deletions

View File

@@ -75,7 +75,7 @@ function jira() {
# Strip suffixes starting with _
issue_arg=(${(s:_:)issue_arg})
issue_arg=${issue_arg[1]}
if [[ "$issue_arg" = ${jira_prefix}* ]]; then
if [[ "${issue_arg:l}" = ${jira_prefix:l}* ]]; then
issue="${issue_arg}"
else
issue="${jira_prefix}${issue_arg}"