Oprava case-sensitive parsování TechTower
This commit is contained in:
parent
7e061aa890
commit
101bd60ddb
@ -282,8 +282,8 @@ export const getMenuTechTower = async (firstDayOfWeek: Date, mock: boolean = fal
|
||||
let currentDayIndex = 0;
|
||||
for (let i = 0; i < siblings.length; i++) {
|
||||
const text = $(siblings.get(i)).text().trim().replace('\t', '').replace('\n', ' ');
|
||||
if (DAYS_IN_WEEK.includes(text)) {
|
||||
if (text === DAYS_IN_WEEK[currentDayIndex]) {
|
||||
if (DAYS_IN_WEEK.includes(text.toLocaleLowerCase())) {
|
||||
if (text.toLocaleLowerCase() === DAYS_IN_WEEK[currentDayIndex]) {
|
||||
// Našli jsme dnešní den, odtud začínáme parsovat jídla
|
||||
parsing = true;
|
||||
continue
|
||||
|
Loading…
x
Reference in New Issue
Block a user