Commit 44c10cc1 by Marco Otte-Witte Committed by Jon Yurek

make mime type optional in data URIs

parent 90bb431c
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))
......
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