From d9e191b89e22a1e7db5f08f82b51ca7a5bb4bf9b Mon Sep 17 00:00:00 2001 From: Ankit Agarwal Date: Mon, 4 May 2015 13:51:19 +0530 Subject: [PATCH] MDL-48002 inbound: Update regex for token matching --- lib/tests/messageinbound_test.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/tests/messageinbound_test.php b/lib/tests/messageinbound_test.php index 52bb2a60133fa..e2fcd977fdf4a 100644 --- a/lib/tests/messageinbound_test.php +++ b/lib/tests/messageinbound_test.php @@ -103,7 +103,7 @@ public function message_inbound_handler_trim_testprovider() { 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.