mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
Chomp html suffix literally
Unescaped dot does not mean a suffix.
This commit is contained in:
parent
968c7b4398
commit
bef398eb87
1 changed files with 1 additions and 1 deletions
|
@ -145,7 +145,7 @@ class RDoc::Servlet < WEBrick::HTTPServlet::AbstractServlet
|
|||
# +generator+ is used to create the page.
|
||||
|
||||
def documentation_page store, generator, path, req, res
|
||||
text_name = path.sub /.html$/, ''
|
||||
text_name = path.chomp '.html'
|
||||
name = text_name.gsub '/', '::'
|
||||
|
||||
if klass = store.find_class_or_module(name) then
|
||||
|
|
Loading…
Add table
Reference in a new issue