mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
BUGFIX: Fix TokenisedRegularExpression when matching expressions first element is an array
This commit is contained in:
parent
4315e51358
commit
7c94caa0cc
@ -27,8 +27,8 @@ class TokenisedRegularExpression {
|
||||
$tokens[$i] = array($token, $token);
|
||||
}
|
||||
}
|
||||
|
||||
$startKeys = array_keys($tokenTypes, $this->expression[0]);
|
||||
|
||||
$startKeys = array_keys($tokenTypes, is_array($this->expression[0]) ? $this->expression[0][0] : $this->expression[0]);
|
||||
$allMatches = array();
|
||||
|
||||
foreach($startKeys as $startKey) {
|
||||
|
Loading…
Reference in New Issue
Block a user