Skip to content

Commit 1061148

Browse files
st0012kou
andauthored
Update lib/rdoc/code_object/top_level.rb
Co-authored-by: Sutou Kouhei <kou@clear-code.com>
1 parent ebb5f9f commit 1061148

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/rdoc/code_object/top_level.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def initialize(absolute_name, relative_name = absolute_name)
5252

5353
if relative_name
5454
@base_name = File.basename(relative_name)
55-
@page_name = @base_name.sub(/\.(rb|rdoc|txt|md)$/i, '')
55+
@page_name = @base_name.sub(/\.(rb|rdoc|txt|md)\z/i, '')
5656
else
5757
@base_name = nil
5858
@page_name = nil

0 commit comments

Comments
 (0)