aboutsummaryrefslogtreecommitdiff
path: root/food.js
diff options
context:
space:
mode:
Diffstat (limited to 'food.js')
-rw-r--r--food.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/food.js b/food.js
index 9a73404..cce4ef4 100644
--- a/food.js
+++ b/food.js
@@ -3,8 +3,8 @@ const open = require("./Functions/open.js");
const { weekdayToNumber } = require("./Functions/dateFuncs.js");
function* scrapeFood(data)
-{
- const foodRegex = /<title>(\w{2} (?:\d\d?\.){2}\d{4})<\/title><description><!\[CDATA\[(Lounas) ?:? ?(.*?)<br>(Kasvislounas) ?:? ?(.*?)]]><\/description>/
+{
+ const foodRegex = /<title>(\w{2} (?:\d\d?\.){2}\d{4})<\/title><description><!\[CDATA\[(Lounas) ?:? ?(.*?)(Kasvislounas) ?:? ?(.*?)]]><\/description>/gm;
const foods = data.matchAll(foodRegex);
for(const food of foods)
{