Chris Alfeld | 28 Mar 2006 05:12
Picon

RDoc bug fix [3863] - URL matching

RDoc does not correctly recognize URLs with trailing /'s, such as
  http://foo.net/a/b/c/
The following patch fixes this problem.

This fixes bug 3863 on the rubyforge rdoc bug tracker.
http://rubyforge.org/tracker/?atid=2472&group_id=627&func=browse

If this is not the correct manner to submit this patch then please advise.

Index: lib/rdoc/generators/html_generator.rb
===================================================================
RCS file: /src/ruby/lib/rdoc/generators/html_generator.rb,v
retrieving revision 1.22
diff -r1.22 html_generator.rb
219c219
<          <at> markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/,
:HYPERLINK)
---
>          <at> markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+[\w\/])/, :HYPERLINK)
Attachment (rdoc3863.patch): application/octet-stream, 419 bytes

Gmane