mirror of
https://we.phorge.it/source/phorge.git
synced 2025-01-02 02:40:58 +01:00
Merge branch 'master' of https://github.com/facebook/phabricator
This commit is contained in:
commit
c5157e821b
1 changed files with 2 additions and 3 deletions
|
@ -32,13 +32,12 @@ class PhabricatorRemarkupRuleImageMacro
|
||||||
$this->images[$row->getName()] = $row->getFilePHID();
|
$this->images[$row->getName()] = $row->getFilePHID();
|
||||||
}
|
}
|
||||||
$this->images[self::RANDOM_IMAGE_NAME] = '';
|
$this->images[self::RANDOM_IMAGE_NAME] = '';
|
||||||
|
$this->hash = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function apply($text) {
|
public function apply($text) {
|
||||||
$this->hash = 0;
|
|
||||||
|
|
||||||
return preg_replace_callback(
|
return preg_replace_callback(
|
||||||
'@\b([a-zA-Z0-9_\-]+)\b@U',
|
'@\b([a-zA-Z0-9_\-]+)\b@',
|
||||||
array($this, 'markupImageMacro'),
|
array($this, 'markupImageMacro'),
|
||||||
$text);
|
$text);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue