Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14000680
D10618.id.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
864 B
Referenced Files
None
Subscribers
None
D10618.id.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
@@ -100,7 +100,7 @@
$id = $this->getObjectIDPattern();
$text = preg_replace_callback(
- '@\B{'.$prefix.'('.$id.')((?:[^}\\\\]|\\\\.)*)}\B@',
+ '@\B{'.$prefix.'('.$id.')((?:[^}\\\\]|\\\\.)*)}\B@u',
array($this, 'markupObjectEmbed'),
$text);
@@ -122,7 +122,7 @@
// in the middle of words.
$text = preg_replace_callback(
- '((?<![#-])'.$boundary.$prefix.'('.$id.')(?:#([-\w\d]+))?\b)',
+ '((?<![#-])'.$boundary.$prefix.'('.$id.')(?:#([-\w\d]+))?(?!\w))u',
array($this, 'markupObjectReference'),
$text);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Oct 25, 11:42 PM (3 w, 3 d ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6715586
Default Alt Text
D10618.id.diff (864 B)
Attached To
Mode
D10618: Make `#?` work properly
Attached
Detach File
Event Timeline
Log In to Comment