Add markdown pattern for uploads to file uploader
This commit is contained in:
parent
7b2af8740d
commit
cff3497f2c
|
@ -1,6 +1,7 @@
|
|||
# encoding: utf-8
|
||||
class FileUploader < CarrierWave::Uploader::Base
|
||||
include UploaderHelper
|
||||
MARKDOWN_PATTERN = %r{\!?\[.*?\]\(/uploads/(?<secret>[0-9a-f]{32})/(?<file>.*?)\)}
|
||||
|
||||
storage :file
|
||||
|
||||
|
|
Loading…
Reference in New Issue