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

Add example for bugtraq.logregex with two parts

Summary: Also fix displaying array examples.

Test Plan: Used it in `linkBugtraq()`.

Reviewers: epriestley

Reviewed By: epriestley

CC: aran, Korvin

Maniphest Tasks: T3620

Differential Revision: https://secure.phabricator.com/D6667

+6
+3
src/applications/config/controller/PhabricatorConfigEditController.php
··· 466 466 if ($value === null) { 467 467 $value = phutil_tag('em', array(), pht('(empty)')); 468 468 } else { 469 + if (is_array($value)) { 470 + $value = implode("\n", $value); 471 + } 469 472 $value = phutil_escape_html_newlines($value); 470 473 } 471 474
+3
src/applications/diffusion/config/PhabricatorDiffusionConfigOptions.php
··· 75 75 '%BUGID%')), 76 76 $this->newOption('bugtraq.logregex', 'list<string>', array()) 77 77 ->addExample(array('\B#([1-9]\d*)\b'), pht('Issue #123')) 78 + ->addExample( 79 + array('[Ii]ssues?:?(\s*,?\s*#\d+)+', '(\d+)'), 80 + pht('Issue #123, #456')) 78 81 ->addExample(array('(?<!#)\b(T[1-9]\d*)\b'), pht('Task T123')) 79 82 ->setDescription(pht( 80 83 'Regular expression to link external bug tracker. See '.