MDL-48002 inbound: Update regex for token matching
This commit is contained in:
@@ -103,7 +103,7 @@ class core_messageinbound_testcase extends advanced_testcase {
|
||||
|
||||
protected function read_test_file(\SplFileInfo $file, $fixturesdir) {
|
||||
// Break on the --[TOKEN]-- tags in the file.
|
||||
$tokens = preg_split('#(?:^|\n*)----([A-Z-]+)----\n#', file_get_contents($file->getRealPath()),
|
||||
$tokens = preg_split('#(?:^|\n*)----([A-Z]+)----\n#', file_get_contents($file->getRealPath()),
|
||||
null, PREG_SPLIT_DELIM_CAPTURE);
|
||||
$sections = array(
|
||||
// Key => Required.
|
||||
|
||||
Reference in New Issue
Block a user