Fix the bad regex

This commit is contained in:
Sébastien Lucas 2012-07-21 14:31:35 +02:00
parent 2d430bd011
commit 4e87bf7804

View file

@ -146,7 +146,7 @@ class Book extends Base {
}
if (preg_match ("/<\/(div|p|a)>/", $this->comment))
{
return $addition . preg_replace ("<(br|hr)>", "$1 /", $this->comment);
return $addition . preg_replace ("/<(br|hr)>/", "<$1 />", $this->comment);
}
else
{