aboutsummaryrefslogtreecommitdiffstats
path: root/actionview
diff options
context:
space:
mode:
authorkenta-s <knt01222@gmail.com>2017-01-18 08:22:59 +0900
committerkenta-s <knt01222@gmail.com>2017-01-18 08:22:59 +0900
commit0732ea7136da43cf3d84d8ce20dd7105a16e78b0 (patch)
treefd3ecda4f6b04a5a72435e9352e549f84f6b03b6 /actionview
parenta8a673f2e43f27b770ebfc75572ff7de0bbe1f6c (diff)
downloadrails-0732ea7136da43cf3d84d8ce20dd7105a16e78b0.tar.gz
rails-0732ea7136da43cf3d84d8ce20dd7105a16e78b0.tar.bz2
rails-0732ea7136da43cf3d84d8ce20dd7105a16e78b0.zip
Remove unused variable 'regex'
Diffstat (limited to 'actionview')
-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