diff --git a/autoload/fugitive.vim b/autoload/fugitive.vim index 0367a99..1660bcc 100644 --- a/autoload/fugitive.vim +++ b/autoload/fugitive.vim @@ -7224,7 +7224,7 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor let remote = matchstr(arg, '^++\%([Gg]it\)\=[Rr]emote=\zs\S\+') let arg = matchstr(arg, '\s\zs\S.*') endif - let validremote = '\.\%(git\)\=\|\.\=/.*\|[[:alnum:]_-]\+\%(://.\{-\}\)\=' + let validremote = '\.\%(git\)\=\|\.\=/.*\|\a[[:alnum:]_-]*\%(://.\{-\}\)\=' if arg ==# '-' let remote = '' let rev = '' @@ -7235,8 +7235,8 @@ function! fugitive#BrowseCommand(line1, count, range, bang, mods, arg, ...) abor return 'echoerr ' . string('fugitive: could not find prior :Git invocation') endif elseif !exists('l:remote') - let remote = matchstr(arg, '@\zs\%('.validremote.'\)$') - let rev = substitute(arg, '@\%('.validremote.'\)$','','') + let remote = matchstr(arg, '\\\@