From 1dfa0b9b29def31b31c2ff23bef95b81cc262baa Mon Sep 17 00:00:00 2001 From: Guimc Date: Sun, 7 Jul 2024 15:44:08 +0800 Subject: [PATCH] fix --- src/main/kotlin/ltd/guimc/plugin/quotly/QuotLyCommand.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/kotlin/ltd/guimc/plugin/quotly/QuotLyCommand.kt b/src/main/kotlin/ltd/guimc/plugin/quotly/QuotLyCommand.kt index 2d92d1e..2b30a26 100644 --- a/src/main/kotlin/ltd/guimc/plugin/quotly/QuotLyCommand.kt +++ b/src/main/kotlin/ltd/guimc/plugin/quotly/QuotLyCommand.kt @@ -84,7 +84,8 @@ object QuotLyCommand: SimpleCommand( " \"text\": \"${textMessage.replace("\\", "\\\\") .replace("\r", "\\r") .replace("\n", "\\n") - .replace("\t", "\\t")}\",\n" + + .replace("\t", "\\t") + .replace("\"", "\\\"")}\",\n" + " }\n" + " ]\n" + " }")