Fixing regex pattern so it will work with Composer autoload namespacing
This commit is contained in:
parent
4a1bb162c0
commit
4917567d76
1 changed files with 1 additions and 1 deletions
2
dBug.php
2
dBug.php
|
@ -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];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue