From 599ca83f0fa9f97b68f605284a9674b07ae06f5a Mon Sep 17 00:00:00 2001 From: Gisle Aune Date: Sat, 5 Jan 2019 11:19:45 +0100 Subject: [PATCH] logs-content: Fixed quote detection in text post not detecting double-apostrpohes (KVIrc has anti-RP sentiments among their dev team) --- marko/page/logs-content/components/post/component.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/marko/page/logs-content/components/post/component.js b/marko/page/logs-content/components/post/component.js index 839245b..4e450ff 100644 --- a/marko/page/logs-content/components/post/component.js +++ b/marko/page/logs-content/components/post/component.js @@ -88,7 +88,7 @@ module.exports = class { this.state.text = this.state.text.slice(1).trim(); } - if (input.post.kind === "text" && !this.state.text.includes("\"") && !this.state.text.includes("|")) { + if (input.post.kind === "text" && !this.state.text.includes("\"") && !this.state.text.includes("\''") && !this.state.text.includes("|")) { const colonIndex = this.state.text.indexOf(": "); if (colonIndex != -1 && colonIndex < this.state.text.indexOf(" ")) { this.state.text = this.state.text.replace(": ", ": \"") + "\"";