Commit 05638cdb authored by alexpott's avatar alexpott

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
......@@ -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)) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment