Bugfix: Fixed pattern

This commit is contained in:
gmarik 2011-02-03 23:21:32 -06:00
parent 8a253e4154
commit 2aa86954ea

View File

@ -36,7 +36,7 @@ endf
func! s:parse_name(arg)
let arg = a:arg
if arg =~ '^\s*\(git@\|git://\)\S\+' || arg =~ 'https\?://' || arg =~ '\.git\*$'
if arg =~ '^\s*\(git@\|git://\)\S\+' || arg =~ 'https\?://' || arg =~ '\.git\s*$'
let uri = arg
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
else