diff options
author | Akira Matsuda <ronnie@dio.jp> | 2016-03-05 05:38:37 +0900 |
---|---|---|
committer | Akira Matsuda <ronnie@dio.jp> | 2016-03-05 05:38:37 +0900 |
commit | 28a6571bae1d6bc1c774e8e501720374061a31f1 (patch) | |
tree | f9b6c5abf3610abed32883496a8fd334f8abc74b /actionview/lib | |
parent | 722319d2fe75204458ab97d5b9b1e28c7f0b1e18 (diff) | |
download | rails-28a6571bae1d6bc1c774e8e501720374061a31f1.tar.gz rails-28a6571bae1d6bc1c774e8e501720374061a31f1.tar.bz2 rails-28a6571bae1d6bc1c774e8e501720374061a31f1.zip |
We're not using $2 from this Regexp
https://github.com/rails/rails/pull/24052/files#r55083975
Diffstat (limited to 'actionview/lib')
-rw-r--r-- | actionview/lib/action_view/renderer/partial_renderer.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/renderer/partial_renderer.rb b/actionview/lib/action_view/renderer/partial_renderer.rb index f15d6c965e..13b4ec6133 100644 --- a/actionview/lib/action_view/renderer/partial_renderer.rb +++ b/actionview/lib/action_view/renderer/partial_renderer.rb @@ -521,7 +521,7 @@ module ActionView def retrieve_variable(path, as) variable = as || begin base = path[-1] == "/".freeze ? "".freeze : File.basename(path) - raise_invalid_identifier(path) unless base =~ /\A_?(.*?)(\.\w+)*\z/ + raise_invalid_identifier(path) unless base =~ /\A_?(.*?)(?:\.\w+)*\z/ $1.to_sym end if @collection |