Closed aeonofdiscord closed 7 years ago
thanks for the fix @aeonofdiscord! i think i'll have to replace the regex with something more robust, as we'll have similar problems if someone typoes an url and adds junk to the end
to your patch i added a commit that wraps the process in a try-catch to prevent the feed from crashing entirely if someone e.g. pastes a bad url, or typos at the end.
This message:
What about encoding our portal.json with msgpack5? (https://www.npmjs.com/package/msgpack5) [...]
was causing rotonde to try to parse the brackets as part of the URL, which failed and threw an exception, preventing the feed from rendering.This PR adds a tiny regex fix to prevent that from happening by ignoring URLs that don't start with http(s)://