Closed tomekbielaszewski closed 4 years ago
It tries to parse colours from HTML tags like the screeps console does, but we need to be smarter about text like this.
I've just debugged the app and it appears it crashes on this line:
event.line = parseLogJson(html2json(event.line));
in plugins/html.js
that's html2json
function which is causing an issue here
I've replaced the ancient parser with something more sensible but it turns out that doesn't always handle this case very well either! It doesn't error, but the <==
text is lost. I may end up writing my own to fix this.
I've replaced htmlparser2 with parse5, which seems to be much more lenient. Can you give this a try and let me know if you encounter any other issues? Thanks!
Published in 1.11.1.
Multimeter crashes when I log my creep state changes. My logs for standard state changes looks like this:
but when this logs is printed in console it crashes:
with error:
Parse Error: <== moving-state