aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack
diff options
context:
space:
mode:
authorJoshua Peek <josh@joshpeek.com>2009-02-07 15:33:11 -0600
committerJoshua Peek <josh@joshpeek.com>2009-02-07 15:33:11 -0600
commit3c625d65e82c2c20f2c0a6dbb2c1db1063db9f72 (patch)
tree14466c4449b227fbba7154f791ff0d0667296cf9 /actionpack
parente4a7c0bb5b175e6eceb2fe808075d6122521237c (diff)
downloadrails-3c625d65e82c2c20f2c0a6dbb2c1db1063db9f72.tar.gz
rails-3c625d65e82c2c20f2c0a6dbb2c1db1063db9f72.tar.bz2
rails-3c625d65e82c2c20f2c0a6dbb2c1db1063db9f72.zip
Ruby 1.9 compat: removed redundant nested repeat operator
Diffstat (limited to 'actionpack')
-rw-r--r--actionpack/lib/action_view/helpers/text_helper.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_view/helpers/text_helper.rb b/actionpack/lib/action_view/helpers/text_helper.rb
index b1eb6891fa..63fe0c1c57 100644
--- a/actionpack/lib/action_view/helpers/text_helper.rb
+++ b/actionpack/lib/action_view/helpers/text_helper.rb
@@ -107,7 +107,7 @@ module ActionView
text
else
match = Array(phrases).map { |p| Regexp.escape(p) }.join('|')
- text.gsub(/(#{match})(?!(?:[^<]*?)?(?:["'])[^<>]*>)/i, options[:highlighter])
+ text.gsub(/(#{match})(?!(?:[^<]*?)(?:["'])[^<>]*>)/i, options[:highlighter])
end
end