summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--inc/parser/lexer.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/parser/lexer.php b/inc/parser/lexer.php
index fb42ac27e..828d57bdf 100644
--- a/inc/parser/lexer.php
+++ b/inc/parser/lexer.php
@@ -107,7 +107,7 @@ class Doku_LexerParallelRegex {
*/
function _getCompoundedRegex() {
if ($this->_regex == null) {
- $cnt = $this->_patterns;
+ $cnt = count($this->_patterns);
for ($i = 0; $i < $cnt; $i++) {
// Replace lookaheads / lookbehinds with marker