Closed KoryNunn closed 5 years ago
This line throws when it can't detect the language: https://github.com/neurotech/pocket-dimension/blob/master/src/syntax/index.js#L8
Example message body that breaks this:
"watch": "watchify -d index.js -o index.browser.js", "serve": "static ./", "start": "npm-run-all --parallel watch serve"
In this case, lang is undefined, and therefore does not trigger the below:
lang
undefined
if (lang === "") { lang = "plaintext" }
This line throws when it can't detect the language: https://github.com/neurotech/pocket-dimension/blob/master/src/syntax/index.js#L8
Example message body that breaks this: