todochecker: Match todo case-insensitively :-( that finds a lot more.

This commit is contained in:
tjhunt 2009-07-17 07:26:12 +00:00
parent 05280d5f97
commit 6180cdc97a

View File

@ -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;
}
}