Project

General

Profile

Actions

Bug #174

closed

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

Added by NoKarma (Arthur Schreiber) over 16 years ago. Updated over 13 years ago.

Status:
Closed
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

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0