From bef398eb87ac14fffc7fe19df9ec6b07ddff17cd Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Mon, 29 Jul 2019 22:51:01 +0900 Subject: [PATCH] Chomp html suffix literally Unescaped dot does not mean a suffix. --- lib/rdoc/servlet.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/rdoc/servlet.rb b/lib/rdoc/servlet.rb index 72e6e90193..d6e8dc4672 100644 --- a/lib/rdoc/servlet.rb +++ b/lib/rdoc/servlet.rb @@ -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