Skip to content

Commit 002e34b

Browse files
committed
Tweak regex
1 parent f8d9412 commit 002e34b

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
@@ -961,7 +961,7 @@ function! s:BufCommands()
961961
if RailsFilePath() =~ '\<app/views/'
962962
" TODO: complete controller names with trailing slashes here
963963
command! -buffer -bar -bang -nargs=? -range -complete=customlist,s:controllerList Rextract :<line1>,<line2>call s:Extract(<bang>0,<f-args>)
964-
elseif rails#buffer().name() =~# '^app/helpers/.*.rb$'
964+
elseif rails#buffer().name() =~# '^app/helpers/.*\.rb$'
965965
command! -buffer -bar -bang -nargs=1 -range Rextract :<line1>,<line2>call s:RubyExtract(<bang>0, 'app/helpers', [], s:sub(<f-args>, '_helper$|Helper$|$', '_helper'))
966966
elseif rails#buffer().name() =~# '^app/\w\+/.*\.rb$'
967967
command! -buffer -bar -bang -nargs=1 -range Rextract :<line1>,<line2>call s:RubyExtract(<bang>0, matchstr(rails#buffer().name(), '^app/\w\+/').'concerns', [' extend ActiveSupport::Concern', ''], <f-args>)

0 commit comments

Comments
 (0)