diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-26 16:26:00 +0000 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2006-09-26 16:26:00 +0000 |
commit | c554a9cabaa3c8bbed5a0dccb381fdc6d516972d (patch) | |
tree | 4a7d6df8f3631a30c725c5afd8c383269fff0ff0 /actionpack/lib/action_view | |
parent | 82558186a34f6b852e9e52b78d411720476894ad (diff) | |
download | rails-c554a9cabaa3c8bbed5a0dccb381fdc6d516972d.tar.gz rails-c554a9cabaa3c8bbed5a0dccb381fdc6d516972d.tar.bz2 rails-c554a9cabaa3c8bbed5a0dccb381fdc6d516972d.zip |
strip_links is case-insensitive. Closes #6285.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5191 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/lib/action_view')
-rw-r--r-- | actionpack/lib/action_view/helpers/text_helper.rb | 2 |
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 9d8921bf86..27e093a1c3 100644 --- a/actionpack/lib/action_view/helpers/text_helper.rb +++ b/actionpack/lib/action_view/helpers/text_helper.rb @@ -152,7 +152,7 @@ module ActionView # Turns all links into words, like "<a href="something">else</a>" to "else". def strip_links(text) - text.gsub(/<a\b.*?>(.*?)<\/a>/m, '\1') + text.gsub(/<a\b.*?>(.*?)<\/a>/mi, '\1') end # Try to require the html-scanner library |