RDoc::Markup::ToHtmlCrossref dosen't recognize filepath including '-'


#1

e$B6a1J$H?=$7$^$9!#e(B

trunk e$B$N%=!<%9$Ge(B make test-all e$B$9$k$He(B
test_handle_special_CROSSREF_no_underscore e$B$,e(B Failure e$B$Ke(B
e$B$J$k$3$H$,$"$j$^$9!#e(B
e$B$I$&$d$i%=!<%9%D%j!<$rCV$/%G%#%l%/%H%j%Q%9$Ke(B ‘-’
e$B$,4^$^$l$F$$$k$He(B
e$B$&$^$/$$$+$J$$$h$&$G$7$?!#e(B

e$BH=Dj$7$F$$$k@55,I=8=$KDI2C$7$Fe(B(’-’ e$B$@$1$G$$$$$N$+5?Ld$G$9$,e(B)
make test-all e$B$@$1$ODL$k$h$&$K$J$j$^$7$?!#e(B
e$BKvHx$Ke(B trunk e$B$X$Ne(B patche$B$rE=$j$^$9!#e(B
e$B$?$@e(B rdoc e$B$r0U<1$7$F;H$C$?$3$H$,$J$$$N$GB>$NF0:n3NG’Ey$Oe(B
e$B$7$F$$$^$;$s!#e(B

e$B$?$@$J$s$H$J$/%F%9%H$G%U%k%Q%9$rEO$7$F$$$k$N$,$$$1$J$$$h$&$Je(B
e$B5$$b$7$^$9!#%U%!%$%k%Q%9$rAjBP%Q%9$K$9$k$h$&$Ke(B
test_rdoc_markup_to_html_crossref.rb e$B$r=$@5$7$F$be(B
e$BDL$k$h$&$K$O$G$-$^$7$?!#e(B
e$B$I$J$?$+>$7$$J}$K8!F$$7$FD:$-$?$$$H;W$$$^$9!#e(B

===================================================================
— lib/rdoc/markup/to_html_crossref.rb (revision 22068)
+++ lib/rdoc/markup/to_html_crossref.rb (working copy)
@@ -65,7 +65,7 @@
# The key thing is that there must be at least
# one special character (period, slash, or
# underscore).

  •                  | [\/\w]+[_\/\.][\w\/\.]+
    
  •                  | [-\/\w]+[_\/\.][-\w\/\.]+
    
                     # Things that have markup suppressed
                     | \\[^\s]