mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2024-11-15 03:18:26 +00:00
Change named capture group syntax.
This increases compatibility with really old version of PCRE used on CentOS. Refs #GH-681
This commit is contained in:
parent
048dc8d254
commit
157e243eee
1 changed files with 1 additions and 1 deletions
|
@ -182,7 +182,7 @@ class ConsoleOutput {
|
|||
return preg_replace('#</?(?:' . $tags . ')>#', '', $text);
|
||||
}
|
||||
return preg_replace_callback(
|
||||
'/<(?<tag>[a-z0-9-_]+)>(?<text>.*?)<\/(\1)>/ims', array($this, '_replaceTags'), $text
|
||||
'/<(?P<tag>[a-z0-9-_]+)>(?P<text>.*?)<\/(\1)>/ims', array($this, '_replaceTags'), $text
|
||||
);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue