Skip to content
Browse files

by EclipseGC: Updating tag parsing to support older preg formats.

  • Loading branch information...
1 parent 681908b commit 6cb098fed5d27f2b67cd9f6cdecfc12ed156af19 @yhahn yhahn committed
Showing with 1 addition and 1 deletion.
  1. +1 −1 fserver.module
View
2 fserver.module
@@ -168,7 +168,7 @@ function fserver_parse_package_name($package_filename) {
*/
function fserver_parse_tag_name($tag) {
// example: drupal-6--1-0-alpha1
- if (preg_match('/^(?<project>\w+)-(?<core>\d+)--(?<major>\d+)-(?<patch>\d+)-?(?<extra>\w+)?$/', $tag, $matches)) {
+ if (preg_match('/^(?P<project>\w+)-(?P<core>\d+)--(?P<major>\d+)-(?P<patch>\d+)-?(?P<extra>\w+)?$/', $tag, $matches)) {
$parsed = array_intersect_key($matches, array('core' => '', 'major' => '', 'patch' => '', 'extra' => ''));
if (!empty($parsed)) {
$parsed['core'] = "{$parsed['core']}.x";

0 comments on commit 6cb098f

Please sign in to comment.
Something went wrong with that request. Please try again.