Skip to content
Snippets Groups Projects
Commit 61aa90ef authored by winniehell's avatar winniehell
Browse files

Allow all alphanumeric characters in file names (!8002)

parent c16b24af
No related branches found
No related tags found
No related merge requests found
---
title: Allow all alphanumeric characters in file names
merge_request: 8002
author: winniehell
Loading
Loading
@@ -61,7 +61,7 @@ module Gitlab
end
 
def file_name_regex
@file_name_regex ||= /\A[a-zA-Z0-9_\-\.\@]*\z/.freeze
@file_name_regex ||= /\A[[[:alnum:]]_\-\.\@]*\z/.freeze
end
 
def file_name_regex_message
Loading
Loading
@@ -69,7 +69,7 @@ module Gitlab
end
 
def file_path_regex
@file_path_regex ||= /\A[a-zA-Z0-9_\-\.\/\@]*\z/.freeze
@file_path_regex ||= /\A[[[:alnum:]]_\-\.\/\@]*\z/.freeze
end
 
def file_path_regex_message
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment