dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
(from parent 1:
c7a197d
)
Merge "Use a better regular expression to find documented hooks in findHooks.php"
author
jenkins-bot
<jenkins-bot@gerrit.wikimedia.org>
Thu, 26 Dec 2013 18:09:24 +0000
(18:09 +0000)
committer
Gerrit Code Review
<gerrit@wikimedia.org>
Thu, 26 Dec 2013 18:09:25 +0000
(18:09 +0000)
maintenance/findHooks.php
patch
|
blob
|
history
diff --git
a/maintenance/findHooks.php
b/maintenance/findHooks.php
index
74eb971
..
ee8c48f
100644
(file)
--- a/
maintenance/findHooks.php
+++ b/
maintenance/findHooks.php
@@
-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] );
}