diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2017-01-17 21:35:18 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-17 21:35:18 -0500 |
commit | 45cc33a83daedad6148a2a257a5b622f0c47f2c2 (patch) | |
tree | fd3ecda4f6b04a5a72435e9352e549f84f6b03b6 | |
parent | a8a673f2e43f27b770ebfc75572ff7de0bbe1f6c (diff) | |
parent | 0732ea7136da43cf3d84d8ce20dd7105a16e78b0 (diff) | |
download | rails-45cc33a83daedad6148a2a257a5b622f0c47f2c2.tar.gz rails-45cc33a83daedad6148a2a257a5b622f0c47f2c2.tar.bz2 rails-45cc33a83daedad6148a2a257a5b622f0c47f2c2.zip |
Merge pull request #27716 from kenta-s/remove-unused-variable-regex
Remove unused variable 'regex'
-rw-r--r-- | actionview/lib/action_view/helpers/text_helper.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionview/lib/action_view/helpers/text_helper.rb b/actionview/lib/action_view/helpers/text_helper.rb index 07dccf5b41..bc922f9ce8 100644 --- a/actionview/lib/action_view/helpers/text_helper.rb +++ b/actionview/lib/action_view/helpers/text_helper.rb @@ -187,7 +187,7 @@ module ActionView unless separator.empty? text.split(separator).each do |value| if value.match(regex) - regex = phrase = value + phrase = value break end end |