todochecker: Match todo case-insensitively :-( that finds a lot more.
This commit is contained in:
@@ -110,7 +110,7 @@ function check_to_dos($filepath) {
|
||||
$lines = file($filepath);
|
||||
$matchesinfile = array();
|
||||
foreach ($lines as $lineno => $line) {
|
||||
if (preg_match('/\bTODO\b/', $line)) {
|
||||
if (preg_match('/\bTODO\b/i', $line)) {
|
||||
$matchesinfile[$lineno] = $line;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user