Browse files

Added supported for image files that contain alphanumerica extensiosn…

… (3FR). When writing a new file in process<bang>, a temp file is created. Previously, this temp file was created by inserting _tmp between the file basename and the extension. The regular expression didn't account for extensions with numeric values. Now it does (I use [[::alnum::]])
  • Loading branch information...
cgat committed Mar 21, 2013
1 parent 2235912 commit c730aa13f550dce3f7ca62911ddd711c721ca656
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/carrierwave/vips.rb
@@ -190,7 +190,7 @@ def manipulate!
def process!(*)
ret = super
if @_vimage
- tmp_name = current_path.sub(/(\.[a-z]+)$/i, '_tmp\1')
+ tmp_name = current_path.sub(/(\.[[:alnum:]]+)$/i, '_tmp\1')
writer = writer_class.send(:new, @_vimage, @_format_opts)
if @_strip

0 comments on commit c730aa1

Please sign in to comment.