auto_link helper fails to recognize links separated by space. [#72 state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
This commit is contained in:
Eugene Pimenov
2008-05-01 09:37:10 +04:00
committed by Pratik Naik
parent 3baf810482
commit 150717344a
2 changed files with 2 additions and 1 deletions

View File

@@ -454,7 +454,7 @@ module ActionView
( # leading text
<\w+.*?>| # leading HTML tag, or
[^=!:'"/]| # leading punctuation, or
^ # beginning of line
| # nothing
)
(
(?:https?://)| # protocol spec, or

View File

@@ -262,6 +262,7 @@ class TextHelperTest < ActionView::TestCase
assert_equal email2_result, auto_link(email2_raw)
assert_equal '', auto_link(nil)
assert_equal '', auto_link('')
assert_equal "#{link_result} #{link_result} #{link_result}", auto_link("#{link_raw} #{link_raw} #{link_raw}")
end
def test_auto_link_at_eol