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:
parent
b348aaefb9
commit
ce62632e15
2 changed files with 6 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
|
@ -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 '.
|
||||
|
|
Loading…
Reference in a new issue