@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Use a stricter regexp in Diffusion remarkup

Summary:
Just minor bookkeeping, but the current regexp is too liberal and
will match things which can't possibly be revision hashes.

Test Plan:
Typed things which should and shouldn't be revision links, they
got handled properly.

Reviewed By: aran
Reviewers: jungejason, tuomaspelkonen, aran
CC: aran
Differential Revision: 185

+1 -1
+1 -1
src/infrastructure/markup/remarkup/markuprule/diffusion/PhabricatorRemarkupRuleDiffusion.php
··· 24 24 25 25 public function apply($text) { 26 26 return preg_replace_callback( 27 - '@\br([A-Z]+[a-z0-9]+)\b@', 27 + '@\br([A-Z]+[a-f0-9]+)\b@', 28 28 array($this, 'markupDiffusionLink'), 29 29 $text); 30 30 }