Project

General

Profile

Bug #174

[1.8.6] File.extname(".profile") is not returning an empty String

Added by NoKarma (Arthur Schreiber) almost 12 years ago. Updated about 9 years ago.

Status:
Closed
Priority:
Normal
Target version:
-
ruby -v:
[ruby-core:17290]

Description

=begin
In the latest patchlevel versions of the ruby_1_8_6 branch, the File.extname method stopped returning empty Strings for files starting with a dot:

Latest version of the ruby_1_8 branch:
File.extname(".profile") # => ""

Latest version of the ruby_1_8_7 branch:
File.extname(".profile") # => ""

Latest version of the ruby_1_8_6 branch:
File.extname(".profile") # => ".profile"
=end

Also available in: Atom PDF