Skip to content

Commit

Permalink
dev: fixed documentor to find more matches
Browse files Browse the repository at this point in the history
  • Loading branch information
mennodekker committed Apr 8, 2013
1 parent 7193852 commit 8d5cc04
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion application/libraries/PluginManager/EventDocumentor.php
Expand Up @@ -29,7 +29,7 @@ function scanFile($fileName)
global $events;
$contents = file_get_contents($fileName);

$regex = '/(\$.*)*new[[:space:]]*PluginEvent[[:space:]]*\([[:space:]]*[\'"]+(.*)[\'"]+/';
$regex = '/(.*)new[[:space:]]+PluginEvent[[:space:]]*\([[:space:]]*[\'"]+(.*)[\'"]+/';

$count = preg_match_all($regex, $contents, $matches);
if ($count > 0)
Expand Down

0 comments on commit 8d5cc04

Please sign in to comment.