Skip to content

Commit

Permalink
Fix trailing period in temp files
Browse files Browse the repository at this point in the history
  • Loading branch information
steel committed Jun 17, 2010
1 parent a616946 commit 356b36d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/mini_magick.rb
Expand Up @@ -84,7 +84,7 @@ def format(format, page=0)
run_command("mogrify", "-format", format, @path)

old_path = @path.dup
@path.sub!(/(\.\w+)?$/, ".#{format}")
@path.sub!(/(\.\w*)?$/, ".#{format}")
File.delete(old_path) unless old_path == @path

unless File.exists?(@path)
Expand Down

0 comments on commit 356b36d

Please sign in to comment.