Skip to content

Commit

Permalink
Do not conform asm output as external strings (#196)
Browse files Browse the repository at this point in the history
  • Loading branch information
Headline committed Feb 27, 2023
1 parent d92b639 commit b34eae7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[package]
name = "discord-compiler-bot"
description = "Discord bot to compile your spaghetti code."
version = "3.5.1"
version = "3.5.2"
authors = ["Michael Flaherty (Headline#9999)"]
edition = "2018"
build = "src/build.rs"
Expand Down
4 changes: 2 additions & 2 deletions src/utls/discordhelpers/embeds.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ impl ToEmbed for godbolt::GodboltResponse {
for str in pieces {
let title = format!("Assembly Output Pt. {}", i);

let piece = discordhelpers::conform_external_str(&str, MAX_OUTPUT_LEN);
let piece = str.replace('`', "\u{200B}`");
embed.field(&title, format!("```x86asm\n{}\n```", &piece), false);
output = true;
i += 1;
Expand All @@ -140,7 +140,7 @@ impl ToEmbed for godbolt::GodboltResponse {
String::from("Assembly Output")
};

let str = discordhelpers::conform_external_str(&append, MAX_OUTPUT_LEN);
let str = append.replace('`', "\u{200B}`");
embed.field(&title, format!("```x86asm\n{}\n```", &str), false);
output = true;
}
Expand Down

0 comments on commit b34eae7

Please sign in to comment.