From: ug.tiser@... Date: 2018-10-23T11:17:16+00:00 Subject: [ruby-core:89529] [Ruby trunk Bug#15244] Method #extname return empty string if filename is dot ('.') Issue #15244 has been reported by TiSer (Sergey TiSer). ---------------------------------------- Bug #15244: Method #extname return empty string if filename is dot ('.') https://bugs.ruby-lang.org/issues/15244 * Author: TiSer (Sergey TiSer) * Status: Open * Priority: Normal * Assignee: * Target version: * ruby -v: 2.5.0p0 * Backport: 2.3: UNKNOWN, 2.4: UNKNOWN, 2.5: UNKNOWN ---------------------------------------- Current behaviour: ``` File.extname('..jpg') => "" ``` Expected behaviour: ``` File.extname('..jpg') => '.' ``` -- https://bugs.ruby-lang.org/ Unsubscribe: