diff --git a/src/infrastructure/markup/remarkup/markuprule/mention/PhabricatorRemarkupRuleMention.php b/src/infrastructure/markup/remarkup/markuprule/mention/PhabricatorRemarkupRuleMention.php index ccacba0f82..be1b59f83a 100644 --- a/src/infrastructure/markup/remarkup/markuprule/mention/PhabricatorRemarkupRuleMention.php +++ b/src/infrastructure/markup/remarkup/markuprule/mention/PhabricatorRemarkupRuleMention.php @@ -27,8 +27,10 @@ class PhabricatorRemarkupRuleMention public function apply($text) { // NOTE: Negative lookahead for period prevents us from picking up email - // addresses, while allowing constructs like "@tomo, lol". - $regexp = '/@([a-zA-Z0-9]+)\b(?![.])/'; + // addresses, while allowing constructs like "@tomo, lol". The negative + // lookbehind for a word character prevents us from matching "mail@lists" + // while allowing "@tomo/@mroch". + $regexp = '/(?