fix lexer regex -ugly hack to fix pcre strictness with ranges

an upgrade to php7.3/libpcre and ... this breaks. this is an ugly
hack, but it gets wiki content back.
This commit is contained in:
Carsten Haitzler 2020-02-29 17:00:06 +00:00
parent c8cab04139
commit 4aec8d62fd
1 changed files with 2 additions and 0 deletions

View File

@ -160,6 +160,8 @@ class Doku_LexerParallelRegex {
$cnt = count($this->_patterns);
for ($i = 0; $i < $cnt; $i++) {
if ($this->_patterns[$i] == '\\\\\\\\\\w+?(?:\\\\[\\w-$]+)+')
$this->_patterns[$i] = '\\\\\\\\\\w+?(?:\\\\[\\$-w]+)+';
/*
* decompose the input pattern into "(", "(?", ")",
* "[...]", "[]..]", "[^]..]", "[...[:...:]..]", "\x"...