From 4e87bf7804c9d6f5fa37b5429e57a9b2ed5425e9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Lucas?= Date: Sat, 21 Jul 2012 14:31:35 +0200 Subject: [PATCH] Fix the bad regex --- book.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/book.php b/book.php index 9e34104..cf1cbe9 100644 --- a/book.php +++ b/book.php @@ -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 {