Page MenuHomePhabricator

D14186.id34269.diff
No OneTemporary

D14186.id34269.diff

diff --git a/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php b/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php
--- a/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php
+++ b/src/infrastructure/markup/rule/PhabricatorObjectRemarkupRule.php
@@ -209,13 +209,14 @@
$boundary = '\\B';
}
- // The "(?<![#-])" prevents us from linking "#abcdef" or similar, and
- // "ABC-T1" (see T5714).
+ // The "(?<![#-@])" prevents us from linking "#abcdef" or similar, and
+ // "ABC-T1" (see T5714), and from matching "@T1" as a task (it is a user)
+ // (see T9479).
// The "\b" allows us to link "(abcdef)" or similar without linking things
// in the middle of words.
- return '((?<![#-])'.$boundary.$prefix.'('.$id.')(?:#([-\w\d]+))?(?!\w))u';
+ return '((?<![#-@])'.$boundary.$prefix.'('.$id.')(?:#([-\w\d]+))?(?!\w))u';
}

File Metadata

Mime Type
text/plain
Expires
May 8 2024, 9:54 PM (5 w, 4 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6273169
Default Alt Text
D14186.id34269.diff (912 B)

Event Timeline