This project is archived and is in readonly mode.
auto_link fails to recognize urls separated by space
-
Eugene Pimenov
Hehe, lighthouse also triggers this bug:
http://test.org http://test.org http://test.org
-
Eugene Pimenov
patch to fix this problem
-
Eugene Pimenov
http://dev.rubyonrails.org/ticke... another auto_link problem with patch
-
Eugene Pimenov
<a href="…"><img src="…"></a>
-
Repository
- State changed from new to resolved
(from [150717344aa5c6d8f46fc67de39d6947553ac286]) auto_link helper fails to recognize links separated by space. [#72 state:resolved]
Signed-off-by: Pratik Naik
-
Eugene Pimenov
nooooo =)
This version breaks another thing:
<a href="some url here">test;</a>
-
Pratik
- State changed from resolved to open
Do you have a failing test for that ? Feel free to catch me in #rails-contrib irc channel.
Thanks
-
Kevin Glowacz
- State changed from open to resolved
Here is a failing test for what (what I think) Eugene was talking about:
assert_equal '<a href="http://google.com">Google</a>', auto_link('<a href="http://google.com">Google</a>') -
Kevin Glowacz
I have no idea why it just marked this as resolved with my last comment.
-
Pratik
- State changed from resolved to open
-
Kevin Glowacz
here is a patch that fixes the original bug but doesn't break already linked urls
-
Pratik
Thanks for the patch Kevin.
-
Repository
- State changed from open to resolved
(from [1a73e98660b29a2ce9eccd5b0776367a4969a012]) Fix auto_link helper for already linked urls. [#72 state:resolved]
Signed-off-by: Pratik Naik
