logs-content: Added escaping of back-ticks (`) to avoid monospace in log posts where a nick containing a back-tick has been copied into the text.
the build was successful

This commit is contained in:
2019-01-05 11:28:22 +01:00
parent 599ca83f0f
commit 9b4da98ac4
@@ -81,7 +81,7 @@ module.exports = class {
this.state.name = input.post.nick this.state.name = input.post.nick
this.state.nameSuffix = "" this.state.nameSuffix = ""
this.state.text = input.post.text.replace(/\x02/g, "**").replace(/\x1D/g, "_").trim(); this.state.text = input.post.text.replace(/\x02/g, "**").replace(/\x1D/g, "*").replace(/\`/g, "\\`").trim();
if (this.state.text.startsWith("|")) { if (this.state.text.startsWith("|")) {
this.state.name = "" this.state.name = ""