public
Fork of rails/rails
Description: Ruby on Rails
Homepage: http://rubyonrails.org
Clone URL: git://github.com/JackDanger/rails.git
Search Repo:
auto_link helper fails to recognize links separated by space. [#72 
state:resolved]

Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
Eugene Pimenov (author)
Wed Apr 30 22:37:10 -0700 2008
lifo (committer)
Fri May 16 05:00:39 -0700 2008
commit  150717344aa5c6d8f46fc67de39d6947553ac286
tree    12523f30770c8b7d0071982f36c55d98057705d5
parent  3baf810482303126c75daa7915e200030d1755e0
...
454
455
456
457
 
458
459
460
...
454
455
456
 
457
458
459
460
0
@@ -454,7 +454,7 @@
0
                         ( # leading text
0
                           <\w+.*?>| # leading HTML tag, or
0
                           [^=!:'"/]| # leading punctuation, or
0
- ^ # beginning of line
0
+ | # nothing
0
                         )
0
                         (
0
                           (?:https?://)| # protocol spec, or
...
262
263
264
 
265
266
267
...
262
263
264
265
266
267
268
0
@@ -262,6 +262,7 @@
0
     assert_equal email2_result, auto_link(email2_raw)
0
     assert_equal '', auto_link(nil)
0
     assert_equal '', auto_link('')
0
+ assert_equal "#{link_result} #{link_result} #{link_result}", auto_link("#{link_raw} #{link_raw} #{link_raw}")
0
   end
0
 
0
   def test_auto_link_at_eol

Comments

    No one has commented yet.