Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
guimc233 committed Jul 7, 2024
1 parent 0177ce4 commit f50243a
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/main/kotlin/ltd/guimc/plugin/quotly/QuotLyCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,10 @@ object QuotLyCommand: SimpleCommand(
" \"url\": \"${member.avatarUrl}\"\n" +
" }\n" +
" },\n" +
" \"text\": \"${textMessage.replace("\\n", "\\\\n")
.replace("\n", "\\n")
.replace("\\r", "\\\\r")
.replace("\r", "\\r")}\",\n" +
" \"text\": \"${textMessage.replace("\\", "\\\\")
.replace("\r", "\\r")
.replace("\n", "\\n")
.replace("\t", "\\t")}\",\n" +
" }\n" +
" ]\n" +
" }")
Expand Down

0 comments on commit f50243a

Please sign in to comment.