From 2136db02e2e0ca6b9d684ea2b0dc1e00203c1d88 Mon Sep 17 00:00:00 2001 From: coderkun Date: Mon, 12 May 2014 16:44:32 +0200 Subject: [PATCH] TextFormatter: correctly reference backtick for preserving whitespaces after link creation --- app/TextFormatter.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/TextFormatter.inc b/app/TextFormatter.inc index e11a42ed..85025039 100644 --- a/app/TextFormatter.inc +++ b/app/TextFormatter.inc @@ -72,7 +72,7 @@ // Create links $string = preg_replace('!(^|\s)"([^"]+)":(https?://[^\s]+)(\s|$)!i', '$1$2$4', $string); - $string = preg_replace('!(^|\s)(https?://[^\s]+)(\s|$)!i', '$1$2$4', $string); + $string = preg_replace('!(^|\s)(https?://[^\s]+)(\s|$)!i', '$1$2$3', $string); // Handle Seminarymedia $seminarymedia = array();