mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 14:27:22 +01:00
todochecker: Match todo case-insensitively :-( that finds a lot more.
This commit is contained in:
parent
05280d5f97
commit
6180cdc97a
@ -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;
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user