mirror of
https://github.com/github/rails.git
synced 2026-04-04 03:00:58 -04:00
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:
committed by
Pratik Naik
parent
3baf810482
commit
150717344a
@@ -454,7 +454,7 @@ module ActionView
|
||||
( # leading text
|
||||
<\w+.*?>| # leading HTML tag, or
|
||||
[^=!:'"/]| # leading punctuation, or
|
||||
^ # beginning of line
|
||||
| # nothing
|
||||
)
|
||||
(
|
||||
(?:https?://)| # protocol spec, or
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user