diff --git a/src/system/helper/format.php b/src/system/helper/format.php index 96fd4a3..8ef5b88 100644 --- a/src/system/helper/format.php +++ b/src/system/helper/format.php @@ -49,7 +49,7 @@ class Format { public static function post(string $text) { $text = preg_replace("|@([a-zA-Z0-9_]+)|i", "@$1", $text); - $text = preg_replace("|((https?://)?([\d\w\.-]+\.[\w\.]{2,6})[^\s\]\[\<\>]*/?)|i", "$3", $text); + $text = preg_replace("|((https?://)+([\d\w\.-]+\.[\w\.]{2,6})[^\s\]\[\<\>]*/?)|i", "$3", $text); $text = nl2br($text); return $text;