From: Chris Alfeld Date: 2006-03-29T00:52:10+09:00 Subject: rdoc bug fix [3863] - URL matching ------=_Part_6157_19824656.1143561113540 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline I sent this to ruby-doc and it vanished into the ether (as a subscriber I expected to get a copy promptly). My apologies if this is a cross-posting. RDoc does not recognize URLs correctly. In particular it doesn't recognize URLs that end in a / such as: http://www.foo.net/a/b/c/ The following patch fixes this issue and addresses bug report 3863 on the rubyforge rdoc bug tracker. If there is a better way to submit patches please advise. ---- Index: lib/rdoc/generators/html_generator.rb =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D RCS file: /src/ruby/lib/rdoc/generators/html_generator.rb,v retrieving revision 1.22 diff -r1.22 html_generator.rb 219c219 < @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK) --- > @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+[\w\/]= )/, :HYPERLINK) ---- ------=_Part_6157_19824656.1143561113540 Content-Type: application/octet-stream; name=rdoc3863.patch Content-Transfer-Encoding: 7bit X-Attachment-Id: f_i6s9o3 Content-Disposition: attachment; filename="rdoc3863.patch" 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 < @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK) --- > @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+[\w\/])/, :HYPERLINK) ------=_Part_6157_19824656.1143561113540--