Skip to content

Commit

Permalink
MDL-48002 inbound: Update regex for token matching
Browse files Browse the repository at this point in the history
  • Loading branch information
ankitagarwal committed May 4, 2015
1 parent 813c113 commit d9e191b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/tests/messageinbound_test.php
Expand Up @@ -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.
Expand Down

0 comments on commit d9e191b

Please sign in to comment.