Browse Source

ignore case when parsing name

pull/25/merge
gmarik 15 years ago
parent
commit
c8d17b1cc6
1 changed files with 5 additions and 5 deletions
  1. +5
    -5
      autoload/vundle/config.vim

+ 5
- 5
autoload/vundle/config.vim View File

@ -40,13 +40,13 @@ endf
func! s:parse_name(arg)
let arg = a:arg
if arg =~ '^\s*\(gh\|github\):\S\+'
\ || arg =~ '^\w[a-z0-9-]\+/[^/]\+$'
if arg =~? '^\s*\(gh\|github\):\S\+'
\ || arg =~? '^\w[a-z0-9-]\+/[^/]\+$'
let uri = 'https://github.com/'.split(arg, ':')[-1]
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
elseif arg =~ '^\s*\(git@\|git://\)\S\+'
\ || arg =~ '(file|https\?)://'
\ || arg =~ '\.git\s*$'
elseif arg =~? '^\s*\(git@\|git://\)\S\+'
\ || arg =~? '(file|https\?)://'
\ || arg =~? '\.git\s*$'
let uri = arg
let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1]
else


Loading…
Cancel
Save