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

Add the P character to the regex pattern
main
Nils Adermann 10 years ago
commit c1a722b341

@ -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'].".";
}

Loading…
Cancel
Save