mirror of
https://we.phorge.it/source/phorge.git
synced 2024-09-20 09:18:48 +02:00
Use Remarkup document link
This commit is contained in:
parent
3fcb94a45c
commit
523cba5da4
2 changed files with 3 additions and 1 deletions
|
@ -383,6 +383,8 @@ final class PhabricatorMarkupEngine {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$rules[] = new PhutilRemarkupRuleDocumentLink();
|
||||||
|
|
||||||
if ($options['fileproxy']) {
|
if ($options['fileproxy']) {
|
||||||
$rules[] = new PhabricatorRemarkupRuleProxyImage();
|
$rules[] = new PhabricatorRemarkupRuleProxyImage();
|
||||||
}
|
}
|
||||||
|
|
|
@ -24,7 +24,7 @@ final class PhabricatorRemarkupRuleProxyImage
|
||||||
|
|
||||||
public function apply($text) {
|
public function apply($text) {
|
||||||
|
|
||||||
$filetypes = '(?:\.jpe?g|.png|.gif)';
|
$filetypes = '\.(?:jpe?g|png|gif)';
|
||||||
|
|
||||||
$text = preg_replace_callback(
|
$text = preg_replace_callback(
|
||||||
'@[<](\w{3,}://.+?'.$filetypes.')[>]@',
|
'@[<](\w{3,}://.+?'.$filetypes.')[>]@',
|
||||||
|
|
Loading…
Reference in a new issue