Ignore case and whitespaces in the glob filter

refs #10965
This commit is contained in:
Eric Lippmann 2016-04-13 15:54:41 +02:00
parent 4d488ab354
commit b0a6eb5b1e
1 changed files with 3 additions and 1 deletions

View File

@ -86,8 +86,10 @@ class GlobFilter
unset($pattern[$i]);
} elseif ($subPattern === '.*.*') {
$pattern[$i] = '**';
} else {
} elseif ($subPattern === '.*') {
$pattern[$i] = '/^' . $subPattern . '$/';
} else {
$pattern[$i] = '/^' . trim($subPattern) . '$/i';
}
}