diff --git a/src/applications/diffusion/remarkup/DiffusionRemarkupRule.php b/src/applications/diffusion/remarkup/DiffusionRemarkupRule.php index 8e3d4da871..65880bc193 100644 --- a/src/applications/diffusion/remarkup/DiffusionRemarkupRule.php +++ b/src/applications/diffusion/remarkup/DiffusionRemarkupRule.php @@ -12,9 +12,9 @@ final class DiffusionRemarkupRule $min_qualified = PhabricatorRepository::MINIMUM_QUALIFIED_HASH; return - '(?:r[A-Z]+)?[0-9]+'. + 'r[A-Z]+[1-9]\d*'. '|'. - '(?:r[A-Z]+)?[a-f0-9]{'.$min_qualified.',40}'. + 'r[A-Z]+[a-f0-9]{'.$min_qualified.',40}'. '|'. '[a-f0-9]{'.$min_unqualified.',40}'; }