diff --git a/panels/mensaPlan/helper.php b/panels/mensaPlan/helper.php index 49327065130f31b05abf146ff8d7506493193c4b..2a9b52acba9fe6256b25d40cae42080ed0422fa8 100644 --- a/panels/mensaPlan/helper.php +++ b/panels/mensaPlan/helper.php @@ -103,7 +103,7 @@ function parsDay($html, $day) { return $tag; } function shortenText($text) { - $text = preg_replace ( '#\([\d+,]+\)#', '', $text ); // remove zusatzstoffe + $text = preg_replace ( '#\([^\)]*\)#', '', $text ); // remove zusatzstoffe $text = preg_replace ( '#(\s,|,\s)#', ',', $text ); // fix Komma $text = preg_replace ( '#,#', ', ', $text ); // fix Komma $text = preg_replace ( '#\s+#', ' ', $text ); // fix double Whitespace