Fix paste_buffer

This commit is contained in:
Alcaro 2019-09-28 11:35:52 +02:00 committed by GitHub
parent aa0bbf2df8
commit 42550cc33c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -360,7 +360,7 @@ char *discord_escape_string(const char *msg)
g_regex_unref(escregex);
escregex = g_regex_new("[\r\n]+", 0, 0, NULL);
nmsg = g_regex_replace_literal(escregex, emsg, -1, 0, " ", 0, NULL);
nmsg = g_regex_replace_literal(escregex, emsg, -1, 0, "\\r\\n", 0, NULL);
g_free(emsg);
emsg = nmsg;