Project

General

Profile

Bug #15244

Updated by TiSer (Sergey Ti) about 2 years ago

### Example 1: 
 Current behaviour: 
 ``` 
 File.extname('..jpg') 
 => "" 
 ``` 

 Expected behaviour:  
 ``` 
 File.extname('..jpg') 
 => "." 
 ``` 


 ### Example 2: 
 Current behaviour: 
 ``` 
 File.extname('....jpg') 
 => "" 
 ``` 

 Expected behaviour:  
 ``` 
 => "..." '.' 
 ```

Back