fix regex for local repositories
This commit is contained in:
parent
f1bac10257
commit
7e7cde6444
@ -47,6 +47,7 @@ func! s:parse_name(arg)
|
|||||||
elseif arg =~ '^\s*\(git@\|git://\)\S\+'
|
elseif arg =~ '^\s*\(git@\|git://\)\S\+'
|
||||||
\ || arg =~ 'https\?://'
|
\ || arg =~ 'https\?://'
|
||||||
\ || arg =~ '\.git\s*$'
|
\ || arg =~ '\.git\s*$'
|
||||||
|
\ || arg =~ '\(file://\)\?[~/]'
|
||||||
let uri = arg
|
let uri = arg
|
||||||
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
|
let name = substitute(split(uri,'\/')[-1], '\.git\s*$','','i')
|
||||||
else
|
else
|
||||||
|
Loading…
Reference in New Issue
Block a user