1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-12-21 13:00:56 +01:00

Use "(?P<" for named capturing subpatterns.

Summary:

Test Plan:

Reviewers:

CC:
This commit is contained in:
epriestley 2011-02-09 09:13:07 -08:00
parent 21058f9a08
commit 7c209590c1

View file

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