Permalink
Browse files

Change named capture group syntax.

This increases compatibility with really old version of
PCRE used on CentOS.

Refs #GH-681
  • Loading branch information...
1 parent 048dc8d commit 157e243eeef98f7fd04d3fcd15eaf29a5d984a4c @markstory markstory committed Jun 2, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 lib/Cake/Console/ConsoleOutput.php
@@ -182,7 +182,7 @@ public function styleText($text) {
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
);
}

0 comments on commit 157e243

Please sign in to comment.