Open lcsbckls opened 2 years ago
I'm not entirely sure how to fix this issues that seems to stem from these lines and those similar for "tomorrow" and "day after tomorrow". Any guidance to display "all day" instead of "undefined" would be appreciated. Thanks.
` else if(lines[i].event.location.includes('today')&&!lines[i].event.time.includes('at')) lines[i].event.location = lines[i].event.time.replace("today ","") lines[i].event.time = "Whole - Day"
lines[i].event.time = lines[i].event.time.split(' - ') today.push(lines[i].event) continue`
I'm not entirely sure how to fix this issues that seems to stem from these lines and those similar for "tomorrow" and "day after tomorrow". Any guidance to display "all day" instead of "undefined" would be appreciated. Thanks.
` else if(lines[i].event.location.includes('today')&&!lines[i].event.time.includes('at')) lines[i].event.location = lines[i].event.time.replace("today ","") lines[i].event.time = "Whole - Day"
lines[i].event.name = lines[i].event.name.replace(/([A-z]*)/i, "")