From 0ff9ce69638b45ef436d9c98ccd760a9aef1717a Mon Sep 17 00:00:00 2001 From: vrana Date: Fri, 1 Mar 2013 13:31:11 -0800 Subject: [PATCH] Don't try to highlight 11 in Remarkup Test Plan: 11 Reviewers: epriestley Reviewed By: epriestley CC: aran, Korvin Differential Revision: https://secure.phabricator.com/D5181 --- src/applications/diffusion/remarkup/DiffusionRemarkupRule.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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}'; }