Skip to content

Commit 02e84db

Browse files
committed
Fix URI pattern
1 parent 2b59751 commit 02e84db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

autoload/rails.vim

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ function! s:initOpenURL()
13121312
endfunction
13131313

13141314
function! s:scanlineforuris(line)
1315-
let url = matchstr(a:line,"\\v\\C%(%(GET|PUT|POST|DELETE)\\s+|\w+:/)/[^ \n\r\t<>\"]*[^] .,;\n\r\t<>\":]")
1315+
let url = matchstr(a:line,"\\v\\C%(%(GET|PUT|POST|DELETE)\\s+|\\w+://[^/]*)/[^ \n\r\t<>\"]*[^] .,;\n\r\t<>\":]")
13161316
if url =~ '\C^\u\+\s\+'
13171317
let method = matchstr(url,'^\u\+')
13181318
let url = matchstr(url,'\s\+\zs.*')

0 commit comments

Comments
 (0)