Merge pull request #196 from Alcaro/patch-6

Fix paste_buffer
This commit is contained in:
Artem Savkov 2019-12-08 10:51:35 +01:00 committed by GitHub
commit bc967eb6ab
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;