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