Skip to content
Snippets Groups Projects
Commit 05638cdb authored by Alex Pott's avatar Alex Pott
Browse files

Issue #2318847 by tstoeckler: Fixed ExtensionDiscovery does not allow the...

Issue #2318847 by tstoeckler: Fixed ExtensionDiscovery does not allow the value of the "type" key to be wrapped in quotes.
parent 01372dd5
Branches
Tags
Loading
......@@ -346,9 +346,9 @@ protected function scanDirectory($dir, $include_tests) {
$type = FALSE;
$file = $fileinfo->openFile('r');
while (!$type && !$file->eof()) {
preg_match('@^type:\s*(\w+)\s*$@', $file->fgets(), $matches);
if (isset($matches[1])) {
$type = $matches[1];
preg_match('@^type:\s*(\'|")?(\w+)\1?\s*$@', $file->fgets(), $matches);
if (isset($matches[2])) {
$type = $matches[2];
}
}
if (empty($type)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment