2018-06-27 12:20:23 -04:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
2017-11-03 14:48:15 -04:00
|
|
|
class NamespacePathValidator < AbstractPathValidator
|
|
|
|
extend Gitlab::EncodingHelper
|
|
|
|
|
|
|
|
def self.path_regex
|
|
|
|
Gitlab::PathRegex.full_namespace_path_regex
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.format_regex
|
|
|
|
Gitlab::PathRegex.namespace_format_regex
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.format_error_message
|
|
|
|
Gitlab::PathRegex.namespace_format_message
|
|
|
|
end
|
|
|
|
end
|