We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d4bf4c commit 0f97e08Copy full SHA for 0f97e08
1 file changed
autoload/rails.vim
@@ -833,7 +833,7 @@ function! s:app_default_locale() dict abort
833
let candidates = map(filter(
834
\ s:readfile(self.path('config/application.rb')) + s:readfile(self.path('config/environment.rb')),
835
\ 'v:val =~ "^ *config.i18n.default_locale = :[\"'']\\=[A-Za-z-]\\+[\"'']\\= *$"'
836
- \ ), 'matchstr(v:val,"[A-Za-z-]\\+[\"'']\\= *$")')
+ \ ), 'matchstr(v:val,"[A-Za-z-]\\+\\ze[\"'']\\= *$")')
837
call self.cache.set('default_locale', get(candidates, 0, 'en'))
838
endif
839
return self.cache.get('default_locale')
0 commit comments