PMCORE-3844
This commit is contained in:
committed by
Mauricio Veliz
parent
7bb67a97bd
commit
9f1b738093
2
thirdparty/phing/mappers/RegexpMapper.php
vendored
2
thirdparty/phing/mappers/RegexpMapper.php
vendored
@@ -90,7 +90,7 @@ class RegexpMapper implements FileNameMapper {
|
||||
$groups = (array) $this->reg->getGroups();
|
||||
|
||||
// replace \1 with value of $groups[1] and return the modified "to" string
|
||||
return preg_replace('/\\\([\d]+)/e', "\$groups[$1]", $this->to);
|
||||
return preg_replace_callback('/\\\([\d]+)/', function($matches)use($groups){return $matches[$groups[$matches[1]]];}, $this->to);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user