Strip extension from screenshot filename

parent ff423740
......@@ -22,7 +22,7 @@ end
def rename_image(file, milestone)
path = File.dirname(file)
basename = File.basename(file)
basename = File.basename(file, ".*")
final_name = File.join(path, "#{basename}_v#{milestone}.png")
FileUtils.mv(file, final_name)
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment