aboutsummaryrefslogtreecommitdiff
path: root/food.js
diff options
context:
space:
mode:
authorJoel Kronqvist <joelkronqvist@proton.me>2023-06-21 13:01:57 +0300
committerJoel Kronqvist <joelkronqvist@proton.me>2023-06-21 13:01:57 +0300
commit529477dc21ec03842ac55a2719b0875133d2aa43 (patch)
treedc45521555cfd16407f1b712507556014d0cde8d /food.js
parent9760c6242572f6ed17890b84ec3d14fa414b7579 (diff)
parentd10272298acb4d6e07fb5b73dd7af06d653afd7b (diff)
downloadLYLLRuoka-529477dc21ec03842ac55a2719b0875133d2aa43.tar.gz
LYLLRuoka-529477dc21ec03842ac55a2719b0875133d2aa43.zip
Merge master branches of GitHub repo and server repo
Diffstat (limited to 'food.js')
-rw-r--r--food.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/food.js b/food.js
index 5744090..cce4ef4 100644
--- a/food.js
+++ b/food.js
@@ -4,7 +4,7 @@ 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>/gm
+ 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)
{