Renaming multiple files with multiple dots (.) in them by adding a suffix to the original file name, suffix is added after first dot in filename instead of end
Affected version
40.0
Steps to reproduce
- Have some files with dots (.) in them. For example, create some files in bash:
$ > a.html.erb > b.html.slim > c.html.haml > d.scss.liquid
- Now that you have the files, open Nautilus and try to rename and add something to the end of the files.
Current behavior
The characters I type are supposed to get concatenated in the end, but they are instead always gets concatenated after the string followed by the first dot (.). So that:
- a.html.erb becomes a.html.mp3.erb
- b.html.slim becomes b.html.mp3.slim
- c.html.haml becomes b.html.mp3.haml
- d.scss.liquid becomes b.html.mp3.slim
If you don't have extensions to the files, it gets appended to anywhere a dot is found. For clarity, I am attaching a GIF:
As you can see in the GIF, the mp3 extension is appended after the ft.
, which is unexpected.
Expected behavior
The string should get appended to the filename, not from the dot.
Edited by Andre Klapper