Fix the bad regex
This commit is contained in:
parent
2d430bd011
commit
4e87bf7804
2
book.php
2
book.php
|
@ -146,7 +146,7 @@ class Book extends Base {
|
||||||
}
|
}
|
||||||
if (preg_match ("/<\/(div|p|a)>/", $this->comment))
|
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
|
else
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue