Page MenuHomePhabricator

D10618.id.diff
No OneTemporary

D10618.id.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
@@ -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

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)

Event Timeline