Permalink
Browse files

BUGFIX: Fix TokenisedRegularExpression when matching expressions firs…

…t element is an array
  • Loading branch information...
1 parent 4315e51 commit 7c94caa0cc88f7d473f16c32abe009d14eae4d86 Hamish Friedlander committed Dec 22, 2011
Showing with 2 additions and 2 deletions.
  1. +2 −2 core/manifest/TokenisedRegularExpression.php
@@ -27,8 +27,8 @@ function findAll($tokens) {
$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) {

0 comments on commit 7c94caa

Please sign in to comment.