Chomp html suffix literally
Unescaped dot does not mean a suffix.
This commit is contained in:
parent
968c7b4398
commit
bef398eb87
@ -145,7 +145,7 @@ class RDoc::Servlet < WEBrick::HTTPServlet::AbstractServlet
|
|||||||
# +generator+ is used to create the page.
|
# +generator+ is used to create the page.
|
||||||
|
|
||||||
def documentation_page store, generator, path, req, res
|
def documentation_page store, generator, path, req, res
|
||||||
text_name = path.sub /.html$/, ''
|
text_name = path.chomp '.html'
|
||||||
name = text_name.gsub '/', '::'
|
name = text_name.gsub '/', '::'
|
||||||
|
|
||||||
if klass = store.find_class_or_module(name) then
|
if klass = store.find_class_or_module(name) then
|
||||||
|
Loading…
x
Reference in New Issue
Block a user