Permalink
Browse files

make mime type optional in data URIs

  • Loading branch information...
1 parent 90bb431 commit 44c10cc1993edbe04e84d7b9221536beaec37428 @marcoow marcoow committed with jyurek Jan 28, 2014
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/paperclip/io_adapters/data_uri_adapter.rb
@@ -1,7 +1,7 @@
module Paperclip
class DataUriAdapter < StringioAdapter
- REGEXP = /\Adata:([-\w]+\/[-\w\+]+);base64,(.*)/m
+ REGEXP = /\Adata:([-\w]+\/[-\w\+]+)?;base64,(.*)/m
def initialize(target_uri)
super(extract_target(target_uri))

0 comments on commit 44c10cc

Please sign in to comment.