summaryrefslogtreecommitdiff
path: root/app/services/files/create_service.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/services/files/create_service.rb')
-rw-r--r--app/services/files/create_service.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/services/files/create_service.rb b/app/services/files/create_service.rb
index eeafefc25af..23833aa78ec 100644
--- a/app/services/files/create_service.rb
+++ b/app/services/files/create_service.rb
@@ -12,10 +12,10 @@ module Files
file_name = File.basename(path)
file_path = path
- unless file_name =~ Gitlab::Regex.path_regex
+ unless file_name =~ Gitlab::Regex.file_name_regex
return error(
'Your changes could not be committed, because the file name ' +
- Gitlab::Regex.path_regex_message
+ Gitlab::Regex.file_name_regex_message
)
end