Skip to content
This repository has been archived by the owner on Apr 11, 2024. It is now read-only.

some original datas not match the regex, cause the getEsoStatus function failed now #8

Open
secondsleep opened this issue Feb 11, 2023 · 0 comments

Comments

@secondsleep
Copy link

error info: TypeError: Cannot read properties of null (reading '1')
at Function.getBlocksDate (esoStatus.ts:293:95)

error data: 2022.11.29 -11:15 UTC (6:15 EST) (lose one space, it should be "2022.11.29 - 11:15 UTC (6:15 EST)" normally)
error code: let hour: string = /[0-9]{4}.[0-9]{1,2}.[0-9]{1,2} - ([0-9]{1,2})/.exec(newDateLine.raw)[1] ?? '';

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant