diff --git a/app/Models/Result.php b/app/Models/Result.php index c81a9dbb379c31df19405466e5dda6b0d5a66111..de7a6c3600a566377daf1ded546affef47fd5e07 100644 --- a/app/Models/Result.php +++ b/app/Models/Result.php @@ -35,7 +35,7 @@ class Result $this->titel = strip_tags(trim($titel)); $this->link = trim($link); $this->anzeigeLink = trim($anzeigeLink); - $this->anzeigeLink = preg_replace("/http[s]{0,1}:\/\/(www\.){0,1}/si", "", $this->anzeigeLink); + $this->anzeigeLink = preg_replace("/(http[s]{0,1}:\/\/){0,1}(www\.){0,1}/si", "", $this->anzeigeLink); $this->descr = strip_tags(trim($descr), '<p>'); $this->descr = preg_replace("/\n+/si", " ", $this->descr); $this->longDescr = $this->descr;