diff options
author | Joel Kronqvist <work.joelkronqvist@gmail.com> | 2022-11-05 13:07:11 +0200 |
---|---|---|
committer | Joel Kronqvist <work.joelkronqvist@gmail.com> | 2022-11-05 13:07:11 +0200 |
commit | 0f2d56eafd01b5e728f96cf327f1a3e881a21225 (patch) | |
tree | ed845c70cd9408398235cc8d1cd9e00105a2f5b3 /food.js | |
parent | 4a9dca9ffccb087135c6e2d0eebae45cd567036d (diff) | |
download | LYLLRuoka-0f2d56eafd01b5e728f96cf327f1a3e881a21225.tar.gz LYLLRuoka-0f2d56eafd01b5e728f96cf327f1a3e881a21225.zip |
Hid vegetarian food when it is the same as the normal food. Added date logging to init.sh.
Diffstat (limited to 'food.js')
-rw-r--r-- | food.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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) ?:? ?(.*?)(Kasvislounas) ?:? ?(.*?)]]><\/description>/gm; +{ + const foodRegex = /<title>(\w{2} (?:\d\d?\.){2}\d{4})<\/title><description><!\[CDATA\[(Lounas) ?:? ?(.*?)<br>(Kasvislounas) ?:? ?(.*?)]]><\/description>/ const foods = data.matchAll(foodRegex); for(const food of foods) { |