Skip to content
This repository
Browse code

BUGFIX: Fix TokenisedRegularExpression when matching expressions firs…

…t element is an array
  • Loading branch information...
commit 7c94caa0cc88f7d473f16c32abe009d14eae4d86 1 parent 4315e51
Hamish Friedlander authored December 22, 2011
4  core/manifest/TokenisedRegularExpression.php
@@ -27,8 +27,8 @@ function findAll($tokens) {
27 27
 				$tokens[$i] = array($token, $token);
28 28
 			}
29 29
 		}
30  
-		
31  
-		$startKeys = array_keys($tokenTypes, $this->expression[0]);	
  30
+
  31
+		$startKeys = array_keys($tokenTypes, is_array($this->expression[0]) ? $this->expression[0][0] : $this->expression[0]);
32 32
 		$allMatches = array();
33 33
 		
34 34
 		foreach($startKeys as $startKey) {

0 notes on commit 7c94caa

Please sign in to comment.
Something went wrong with that request. Please try again.