summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-24 10:01:30 +0100
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2016-03-30 10:44:18 +0200
commitcff3497f2c06dd4e1785af3c844040ed7939dcb0 (patch)
tree78bf7d1450cb163ce0f0f5306a341f25fbab4a76 /app
parent7b2af8740dfa080bcb880fef64de4b99e2255dd4 (diff)
downloadgitlab-ce-cff3497f2c06dd4e1785af3c844040ed7939dcb0.tar.gz
Add markdown pattern for uploads to file uploader
Diffstat (limited to 'app')
-rw-r--r--app/uploaders/file_uploader.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/app/uploaders/file_uploader.rb b/app/uploaders/file_uploader.rb
index 86d24469e05..ac719f74f6a 100644
--- a/app/uploaders/file_uploader.rb
+++ b/app/uploaders/file_uploader.rb
@@ -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