summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/mensa.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/mensa.py b/modules/mensa.py
index 3c3a197..d86183a 100644
--- a/modules/mensa.py
+++ b/modules/mensa.py
@@ -32,8 +32,8 @@ class Module(ModuleBase):
return
def handle_data(data):
- r = re.compile(r'.*?<tr[^>]*>(.*?)</tr>.*?<tr[^>]*>(.*?)</tr>', re.DOTALL)
- r2 = re.compile(r'.*?<td[^>]*>(.*?)</td>', re.DOTALL)
+ r = re.compile(r'.*?<tr[^>]*>(.*?)</tr>.*?<tr[^>]*>(.*?)</tr>', re.DOTALL|re.IGNORECASE)
+ r2 = re.compile(r'.*?<td[^>]*>(.*?)</td>', re.DOTALL|re.IGNORECASE)
def handle_data_row(data, pos):
match = r.match(data, pos)
@@ -59,7 +59,7 @@ class Module(ModuleBase):
return (ret, match.end())
- match = re.compile(r'^.*?<table[^>]*>.*?<td[^>]*>.*?(\d+)\.(\d+)\. - \d+\.\d+\.(\d+).*?</td>.*?<td[^>]*>Freitag</td>\s*</tr>(.*?)</table>.*$', re.DOTALL).match(data)
+ match = re.compile(r'^.*?<table[^>]*>.*?<td[^>]*>.*?(\d+)\.(\d+)\. - \d+\.\d+\.(\d+).*?</td>.*?<td[^>]*>Freitag</td>\s*</tr>(.*?)</table>.*$', re.DOTALL|re.IGNORECASE).match(data)
if not match:
return False