Skip to content

Commit

Permalink
auto_link helper fails to recognize links separated by space. [#72 st…
Browse files Browse the repository at this point in the history
…ate:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
  • Loading branch information
Eugene Pimenov authored and lifo committed May 16, 2008
1 parent 3baf810 commit 1507173
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion actionpack/lib/action_view/helpers/text_helper.rb
Expand Up @@ -454,7 +454,7 @@ def set_cycle(name, cycle_object)
( # leading text
<\w+.*?>| # leading HTML tag, or
[^=!:'"/]| # leading punctuation, or
^ # beginning of line
| # nothing
)
(
(?:https?://)| # protocol spec, or
Expand Down
1 change: 1 addition & 0 deletions actionpack/test/template/text_helper_test.rb
Expand Up @@ -262,6 +262,7 @@ def test_auto_linking
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
Expand Down

0 comments on commit 1507173

Please sign in to comment.