Browse Source

Fix regex

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

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

@ -45,7 +45,7 @@ func! s:parse_name(arg)
let uri = 'https://github.com/'.split(arg, ':')[-1] let uri = 'https://github.com/'.split(arg, ':')[-1]
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i') let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
elseif arg =~? '^\s*\(git@\|git://\)\S\+' elseif arg =~? '^\s*\(git@\|git://\)\S\+'
\ || arg =~? '(file|https\?)://'
\ || arg =~? '\(file\|https\?\)://'
\ || arg =~? '\.git\s*$' \ || arg =~? '\.git\s*$'
let uri = arg let uri = arg
let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1] let name = split( substitute(uri,'/\?\.git\s*$','','i') ,'\/')[-1]


Loading…
Cancel
Save