Class: NamespacePathValidator
- Inherits:
-
AbstractPathValidator
- Object
- ActiveModel::EachValidator
- AbstractPathValidator
- NamespacePathValidator
- Extended by:
- Gitlab::EncodingHelper
- Defined in:
- app/validators/namespace_path_validator.rb
Constant Summary
Constants included from Gitlab::EncodingHelper
Gitlab::EncodingHelper::ENCODING_CONFIDENCE_THRESHOLD
Class Method Summary collapse
Methods included from Gitlab::EncodingHelper
binary_io, detect_binary?, detect_libgit2_binary?, encode!, encode_binary, encode_utf8
Methods inherited from AbstractPathValidator
Class Method Details
.format_error_message ⇒ Object
14 15 16 |
# File 'app/validators/namespace_path_validator.rb', line 14 def self. Gitlab::PathRegex. end |
.format_regex ⇒ Object
10 11 12 |
# File 'app/validators/namespace_path_validator.rb', line 10 def self.format_regex Gitlab::PathRegex.namespace_format_regex end |
.path_regex ⇒ Object
6 7 8 |
# File 'app/validators/namespace_path_validator.rb', line 6 def self.path_regex Gitlab::PathRegex.full_namespace_path_regex end |