From 0ddf8cfc8b351339745016beb44e4fca1893123f Mon Sep 17 00:00:00 2001 From: TheDanniCraft Date: Thu, 20 Jan 2022 18:30:33 +0100 Subject: [PATCH] Fixed: Builder does not work on Safari on IOS --- assets/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/script.js b/assets/js/script.js index 060b265..ee52269 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -206,7 +206,7 @@ window.onload = () => { if (opts.inlineBlock) txt = txt.replace(/\`([^\`]+?)\`|\`\`([^\`]+?)\`\`|\`\`\`((?:\n|.)+?)\`\`\`/g, (m, x, y, z) => x ? `${x}` : y ? `${y}` : z ? `${z}` : m); else txt = txt.replace(/\`\`\`(\w{1,15})?\n((?:\n|.)+?)\`\`\`|\`\`(.+?)\`\`(?!\`)|\`([^\`]+?)\`/g, (m, w, x, y, z) => w && x ? `
${x.trim()}
` : x ? `
${x.trim()}
` : y || z ? `${y || z}` : m); if (opts.inEmbed) txt = txt.replace(/\[([^\[\]]+)\]\((.+?)\)/g, `$1`); - if (opts.replaceEmojis) txt = txt.replace(/(?[^>]+)(? x && emojis[x] ? emojis[x] : match); + if (opts.replaceEmojis) txt = txt.replace(/(?:!code(?: \w+=".+")?>[^>]+)(?:!\/[^\s"]+?):((?!\/)\w+):/g, (match, x) => x && emojis[x] ? emojis[x] : match); txt = txt .replace(/> .+(?:\s> .+)*\n?/g, match => `
${match.replace(/> /g, '')}
`) .replace(/\n/g, '
')