Fixing regex pattern so it will work with Composer autoload namespacing

This commit is contained in:
Adam Cameron 2015-06-05 07:58:30 +01:00
parent 4a1bb162c0
commit 4917567d76

View file

@ -104,7 +104,7 @@ class dBug {
$code = $arrLines[($arrFile["line"]-1)];
//find call to dBug class
preg_match('/\bnew dBug\s*\(\s*(.+)\s*\);/i', $code, $arrMatches);
preg_match('/\bnew\s+(?:.*\\\\)?dBug\s*\(\s*(.+)\s*\);/i', $code, $arrMatches);
return $arrMatches[1];
}