diff options
author | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-07-05 19:01:38 +0300 |
---|---|---|
committer | Tiago Botelho <tiagonbotelho@hotmail.com> | 2017-07-05 21:10:14 +0300 |
commit | 1207d451ed934f3ce2d8c02130a8e6b2cac88a70 (patch) | |
tree | 35f501038ecc6cde3927666d4011d0fb03f9b771 /app/models/snippet.rb | |
parent | d1e0b1b3a8404f3a7b54db09c46fb614ca3fcb93 (diff) |
Removes file_name_regex from Gitlab::Regex
Diffstat (limited to 'app/models/snippet.rb')
-rw-r--r-- | app/models/snippet.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/models/snippet.rb b/app/models/snippet.rb index 54014df43b0..b3aa7bb986e 100644 --- a/app/models/snippet.rb +++ b/app/models/snippet.rb @@ -37,9 +37,7 @@ class Snippet < ActiveRecord::Base validates :author, presence: true validates :title, presence: true, length: { maximum: 255 } validates :file_name, - length: { maximum: 255 }, - format: { with: Gitlab::Regex.file_name_regex, - message: Gitlab::Regex.file_name_regex_message } + length: { maximum: 255 } validates :content, presence: true validates :visibility_level, inclusion: { in: Gitlab::VisibilityLevel.values } |