diff options
author | Joel Kronqvist <joelkronqvist@proton.me> | 2023-06-21 13:01:57 +0300 |
---|---|---|
committer | Joel Kronqvist <joelkronqvist@proton.me> | 2023-06-21 13:01:57 +0300 |
commit | 529477dc21ec03842ac55a2719b0875133d2aa43 (patch) | |
tree | dc45521555cfd16407f1b712507556014d0cde8d /food.js | |
parent | 9760c6242572f6ed17890b84ec3d14fa414b7579 (diff) | |
parent | d10272298acb4d6e07fb5b73dd7af06d653afd7b (diff) | |
download | LYLLRuoka-529477dc21ec03842ac55a2719b0875133d2aa43.tar.gz LYLLRuoka-529477dc21ec03842ac55a2719b0875133d2aa43.zip |
Merge master branches of GitHub repo and server repo
Diffstat (limited to 'food.js')
-rw-r--r-- | food.js | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) { |