1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-10 08:52:39 +01:00

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
This commit is contained in:
Jakub Vrana 2013-08-06 09:29:22 -07:00
parent b348aaefb9
commit ce62632e15
2 changed files with 6 additions and 0 deletions

View file

@ -466,6 +466,9 @@ final class PhabricatorConfigEditController
if ($value === null) {
$value = phutil_tag('em', array(), pht('(empty)'));
} else {
if (is_array($value)) {
$value = implode("\n", $value);
}
$value = phutil_escape_html_newlines($value);
}

View file

@ -75,6 +75,9 @@ final class PhabricatorDiffusionConfigOptions
'%BUGID%')),
$this->newOption('bugtraq.logregex', 'list<string>', array())
->addExample(array('\B#([1-9]\d*)\b'), pht('Issue #123'))
->addExample(
array('[Ii]ssues?:?(\s*,?\s*#\d+)+', '(\d+)'),
pht('Issue #123, #456'))
->addExample(array('(?<!#)\b(T[1-9]\d*)\b'), pht('Task T123'))
->setDescription(pht(
'Regular expression to link external bug tracker. See '.