public static final String |
HASH_MESSAGE |
"Hash must consist of the hex representation of 8-32 bytes" |
public static final String |
HASH_REGEX |
"^[0-9a-fA-F]{16,64}$" |
public static final String |
OWNER_MESSAGE |
"Owner name must start with a letter, followed by letters, digits, ._- characters and not be equal to \'config\', \'contents\', \'trees\'" |
public static final String |
OWNER_REGEX |
"^[A-Za-z](((?![.][.])[A-Za-z0-9._-])*[A-Za-z0-9._-])?$" |
public static final String |
REF_NAME_MESSAGE |
"Reference name must start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain .." |
public static final String |
REF_NAME_OR_HASH_MESSAGE |
"Reference must be either a reference name or hash, start with a letter, followed by letters, digits, a ./_- character, not end with a slash, not contain .. or consist of the hex representation of 8-32 bytes" |
public static final String |
REF_NAME_OR_HASH_REGEX |
"^(([0-9a-fA-F]{16,64})|([A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?))$" |
public static final String |
REF_NAME_REGEX |
"^[A-Za-z](((?![.][.])[A-Za-z0-9./_-])*[A-Za-z0-9._-])?$" |
public static final String |
REPO_MESSAGE |
"Repository name must start with a letter, followed by letters, digits, ._- characters and not be equal to \'config\', \'contents\', \'trees\'" |
public static final String |
REPO_REGEX |
"^[A-Za-z](((?![.][.])[A-Za-z0-9._-])*[A-Za-z0-9._-])?$" |