mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-22 05:20:56 +01:00
Use "(?P<" for named capturing subpatterns.
Summary: Test Plan: Reviewers: CC:
This commit is contained in:
parent
21058f9a08
commit
7c209590c1
1 changed files with 1 additions and 1 deletions
|
@ -303,7 +303,7 @@ class DifferentialCommitMessage {
|
|||
$field_names[$key] = preg_quote($name, '/');
|
||||
}
|
||||
$field_names = implode('|', $field_names);
|
||||
$field_pattern = '/^(?<field>'.$field_names.'):(?<text>.*)$/i';
|
||||
$field_pattern = '/^(?P<field>'.$field_names.'):(?P<text>.*)$/i';
|
||||
|
||||
foreach ($field_spec as $key => $value) {
|
||||
$field_spec[strtolower($key)] = $value;
|
||||
|
|
Loading…
Reference in a new issue