Merge "Use a better regular expression to find documented hooks in findHooks.php"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 26 Dec 2013 18:09:24 +0000 (18:09 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 26 Dec 2013 18:09:25 +0000 (18:09 +0000)
maintenance/findHooks.php

index 74eb971..ee8c48f 100644 (file)
@@ -143,7 +143,7 @@ class FindHooks extends Maintenance {
        private function getHooksFromLocalDoc( $doc ) {
                        $m = array();
                        $content = file_get_contents( $doc );
-                       preg_match_all( "/\n'(.*?)'/", $content, $m );
+                       preg_match_all( "/\n'(.*?)':/", $content, $m );
                        return array_unique( $m[1] );
        }