From f91d96b7112c9116e51e9c90ba04923d58c7df96 Mon Sep 17 00:00:00 2001
From: Hotte <root@ovanier.de>
Date: Sat, 22 Oct 2016 11:23:41 +0200
Subject: [PATCH] Zusatzstoff fix

---
 panels/mensaPlan/helper.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/panels/mensaPlan/helper.php b/panels/mensaPlan/helper.php
index 4932706..2a9b52a 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
-- 
GitLab