1
0
Fork 0

Merge pull request #3678 from arcturial/regex-named-group-fix

Add the P character to the regex pattern
pull/3691/head
Nils Adermann 2015-01-29 13:42:11 +01:00
commit c1a722b341
1 changed files with 1 additions and 1 deletions

View File

@ -178,7 +178,7 @@ class VersionParser
*/
public function parseNumericAliasPrefix($branch)
{
if (preg_match('/^(?<version>(\d+\\.)*\d+)(?:\.x)?-dev$/i', $branch, $matches)) {
if (preg_match('/^(?P<version>(\d+\\.)*\d+)(?:\.x)?-dev$/i', $branch, $matches)) {
return $matches['version'].".";
}