General

Profile

TiSer (Sergey Ti)

  • Login: TiSer
  • Registered on: 10/23/2018
  • Last sign in: 06/09/2020

Issues

open closed Total
Assigned issues 0 0 0
Reported issues 0 1 1

Activity

09/24/2019

07:08 PM Ruby Bug #15244: Method #extname return empty string if filename is dot ('.')
Example from .NET:
(https://docs.microsoft.com/en-us/dotnet/api/system.io.path.getextension)
```
class Program
{
static void Main(string[] args)
{
string ext = Path.GetExtension("..jpg");
Console.WriteLine(ext);
...
TiSer (Sergey Ti)

02/16/2019

08:01 AM Ruby Bug #15244: Method #extname return empty string if filename is dot ('.')
Still present. TiSer (Sergey Ti)

11/22/2018

03:11 PM Ruby Bug #15244: Method #extname return empty string if filename is dot ('.')
Still present. TiSer (Sergey Ti)

11/13/2018

02:39 PM Ruby Bug #15244: Method #extname return empty string if filename is dot ('.')
This is still present. TiSer (Sergey Ti)

10/23/2018

12:42 PM Ruby Bug #15244: Method #extname return empty string if filename is dot ('.')
ahorek (Pavel Rosický) wrote:
> IMO
> ...
Yes, sure. I'm sorry, I oversleep correct cases.
Updated.
TiSer (Sergey Ti)
11:56 AM Ruby Bug #15244: Method #extname return empty string if filename is dot ('.')
add one more example TiSer (Sergey Ti)
11:17 AM Ruby Bug #15244 (Closed): Method #extname return empty string if filename is dot ('.')
### Example 1:
Current behaviour:
```
File.extname('..jpg')
=> ""
```
Expected behaviour:
```
File.extname('..jpg')
=> ".jpg"
```
### Example 2:
Current behaviour:
```
File.extname('....jpg')
=> ""
```
Expected ...
TiSer (Sergey Ti)

Also available in: Atom