Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F18749054
D14186.id34269.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
912 B
Referenced Files
None
Subscribers
None
D14186.id34269.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Oct 5 2025, 2:11 AM (11 w, 2 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
8655461
Default Alt Text
D14186.id34269.diff (912 B)
Attached To
Mode
D14186: Stop all object mentions from matching after "@"
Attached
Detach File
Event Timeline
Log In to Comment