aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRafael França <rafaelmfranca@gmail.com>2017-01-17 21:35:18 -0500
committerGitHub <noreply@github.com>2017-01-17 21:35:18 -0500
commit45cc33a83daedad6148a2a257a5b622f0c47f2c2 (patch)
treefd3ecda4f6b04a5a72435e9352e549f84f6b03b6
parenta8a673f2e43f27b770ebfc75572ff7de0bbe1f6c (diff)
parent0732ea7136da43cf3d84d8ce20dd7105a16e78b0 (diff)
downloadrails-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.rb2
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