Project

General

Profile

Bug #15244

Updated by TiSer (Sergey Ti) about 6 years ago

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

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


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

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

Back