Merge branch 'dev' into immediate-finds
This commit is contained in:
commit
2f6e39c0bd
|
@ -78,8 +78,8 @@ const IGNORED_DISCORD_ERRORS = [
|
||||||
function toCodeBlock(s: string, indentation = 0, isDiscord = false) {
|
function toCodeBlock(s: string, indentation = 0, isDiscord = false) {
|
||||||
s = s.replace(/```/g, "`\u200B`\u200B`");
|
s = s.replace(/```/g, "`\u200B`\u200B`");
|
||||||
|
|
||||||
const indentationStr = Array(indentation).fill(" ").join("");
|
const indentationStr = Array(!isDiscord ? indentation : 0).fill(" ").join("");
|
||||||
return `\`\`\`\n${s.split("\n").map(s => indentationStr + s).join("\n")}\n${!isDiscord ? indentationStr : ""}\`\`\``;
|
return `\`\`\`\n${s.split("\n").map(s => indentationStr + s).join("\n")}\n${indentationStr}\`\`\``;
|
||||||
}
|
}
|
||||||
|
|
||||||
async function printReport() {
|
async function printReport() {
|
||||||
|
|
Loading…
Reference in a new issue