Permalink
Browse files

Merge pull request #12 from cgat/addSupportForAlNumExt

Added supported for image files that contain alphanumerica extensiosn (3...
  • Loading branch information...
2 parents 2235912 + c730aa1 commit da6be765b4bf7acb29af60e6d1e26d9b45b4199e @eltiare committed Mar 21, 2013
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
writer.remove_exif

0 comments on commit da6be76

Please sign in to comment.