From b418c6080ff84e781f5bb4092f122029c6c1c077 Mon Sep 17 00:00:00 2001 From: Christophe HENRY Date: Thu, 11 Mar 2021 09:19:13 +0100 Subject: [PATCH] fix missing \ in regex --- index.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.php b/index.php index 99ddd18..6a02b41 100644 --- a/index.php +++ b/index.php @@ -133,7 +133,7 @@ function htmlPrepare(&$text) { $text = mb_ereg_replace("([".DASHES."]) ([^".DASHES.".]+) ([".DASHES."])", "\\1".NARROW_NO_BREAK_SPACE."\\2".NARROW_NO_BREAK_SPACE."\\3", $text); # Adds no-break space to stick the (EM/EN dashes) to words : aaaaaa – bb. ==> aaaaaa –$bb. - $text = mb_ereg_replace("([—–]) ([^.]+).", "\\1".NARROW_NO_BREAK_SPACE."\\2.", $text); + $text = mb_ereg_replace("([—–]) ([^.]+)\.", "\\1".NARROW_NO_BREAK_SPACE."\\2.", $text); } function translateGemToHtml($fileContents) {