From b09f8fa9b84257323116a1f0a570638835d788bd Mon Sep 17 00:00:00 2001 From: epriestley Date: Tue, 9 Sep 2014 16:38:42 -0700 Subject: [PATCH] Don't link objects after a hyphen Summary: Fixes T5714. Don't link objects when their names appear after a hyphen. Test Plan: Tested `F123` (link), `(F123)` (link), `G12-F123` (no link). Reviewers: btrahan Reviewed By: btrahan Subscribers: epriestley Maniphest Tasks: T5714 Differential Revision: https://secure.phabricator.com/D10456 --- .../markup/rule/PhabricatorObjectRemarkupRule.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php b/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php index fc64eb33fa..5c81b58a4f 100644 --- a/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php +++ b/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php @@ -115,12 +115,14 @@ abstract class PhabricatorObjectRemarkupRule extends PhutilRemarkupRule { $boundary = '\\B'; } - // NOTE: The "(?