Merge pull request #3678 from arcturial/regex-named-group-fix
Add the P character to the regex patternpull/3691/head
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…
Reference in New Issue