Class: ProjectPathValidator
- Inherits:
-
AbstractPathValidator
- Object
- ActiveModel::EachValidator
- AbstractPathValidator
- ProjectPathValidator
- Extended by:
- Gitlab::EncodingHelper
- Defined in:
- app/validators/project_path_validator.rb
Constant Summary
Constants included from Gitlab::EncodingHelper
Gitlab::EncodingHelper::BOM_UTF8, Gitlab::EncodingHelper::ENCODING_CONFIDENCE_THRESHOLD, Gitlab::EncodingHelper::ESCAPED_CHARS, Gitlab::EncodingHelper::UNICODE_REPLACEMENT_CHARACTER
Class Method Summary collapse
Methods included from Gitlab::EncodingHelper
binary_io, detect_binary?, detect_encoding, detect_libgit2_binary?, encode!, encode_binary, encode_utf8, encode_utf8_no_detect, encode_utf8_with_escaping!, encode_utf8_with_replacement_character, force_encode_utf8, strip_bom, unquote_path
Methods inherited from AbstractPathValidator
#build_full_path_to_validate_against_reserved_names?, valid_path?, #validate_each
Class Method Details
.format_error_message ⇒ Object
14 15 16 |
# File 'app/validators/project_path_validator.rb', line 14 def self. Gitlab::PathRegex. end |
.format_regex ⇒ Object
10 11 12 |
# File 'app/validators/project_path_validator.rb', line 10 def self.format_regex Gitlab::PathRegex.project_path_format_regex end |
.path_regex ⇒ Object
6 7 8 |
# File 'app/validators/project_path_validator.rb', line 6 def self.path_regex Gitlab::PathRegex.full_project_path_regex end |