{"record":{"id":"168955912a06c341","repo":"phacility/phabricator","slug":"the-name-s-is-not-a-valid-repository-short-name-168955","errorCode":null,"errorMessage":"The name \"%s\" is not a valid repository short name. Repository short names must end with a letter or number.","messagePattern":"The name \"(.+?)\" is not a valid repository short name\\. Repository short names must end with a letter or number\\.","errorType":"validation","errorClass":"Exception","httpStatus":null,"severity":"error","filePath":"src/applications/repository/storage/PhabricatorRepository.php","lineNumber":404,"sourceCode":"    if (preg_match('/[^a-zA-Z0-9._-]/', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.\n          'short names may only contain letters, numbers, periods, hyphens '.\n          'and underscores.',\n          $slug));\n    }\n\n    if (!preg_match('/^[a-zA-Z0-9]/', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.\n          'short names must begin with a letter or number.',\n          $slug));\n    }\n\n    if (!preg_match('/[a-zA-Z0-9]\\z/', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.\n          'short names must end with a letter or number.',\n          $slug));\n    }\n\n    if (preg_match('/__|--|\\\\.\\\\./', $slug)) {\n      throw new Exception(\n        pht(\n          'The name \"%s\" is not a valid repository short name. Repository '.\n          'short names must not contain multiple consecutive underscores, '.\n          'hyphens, or periods.',\n          $slug));\n    }\n\n    if (preg_match('/^[A-Z]+\\z/', $slug)) {\n      throw new Exception(\n        pht(","sourceCodeStart":386,"sourceCodeEnd":422,"githubUrl":"https://github.com/phacility/phabricator/blob/5720a38cfe95b00ca4be5016dd0d2f3195f4fa04/src/applications/repository/storage/PhabricatorRepository.php#L386-L422","documentation":"Error \"The name \"%s\" is not a valid repository short name. Repository short names must end with a letter or number.\" thrown in phacility/phabricator.","triggerScenarios":"Thrown at src/applications/repository/storage/PhabricatorRepository.php:404 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"5720a38cfe95b00ca4be5016dd0d2f3195f4fa04","analyzedAt":"2026-08-21T05:07:25.672Z","schemaVersion":2},"datasetVersion":"2026-08-21T11:28:35.574Z"}