Closed schneefux closed 6 years ago
apparently there is not one event per line, to hotfix use the following regex:
// add `,` to the beginning of each event
let hotfix = apiresponse.replace(/\{ "time":/g, ', { "time":');
// `, {` -> `{`, wrap in `[]`
hotfix = "[" + hotfix.substring(2, hotfix.length) + "]";
For new matches, it is fixed. The match in question above and other matches from that day are still broken.
This should be fixed for new matches. And unless Madglory fix these matches manually, these matches bugged will be gone in 120 days. With that in mind, I will close the issue
To reproduce:
Returns
which can't be parsed as JSON because it's not an array.