summaryrefslogtreecommitdiff
path: root/lib/rdoc
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-29 22:51:01 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-07-29 23:05:41 +0900
commitbef398eb87ac14fffc7fe19df9ec6b07ddff17cd (patch)
treeb73a24a6750a67713e320c8c20bcf3383b367866 /lib/rdoc
parent968c7b4398ea82f764ced57f1d38606ef4b0c8e6 (diff)
Chomp html suffix literally
Unescaped dot does not mean a suffix.
Diffstat (limited to 'lib/rdoc')
-rw-r--r--lib/rdoc/servlet.rb2
1 files changed, 1 insertions, 1 deletions
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