mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-11-14 10:01:21 +01:00
Fix regex for being too greedy in codeblocks
This commit is contained in:
parent
7ce53b851c
commit
6dba85ff65
@ -777,7 +777,7 @@
|
||||
text = text.replace(/__(.*?)__/g, "<u>$1</u>");
|
||||
text = text.replace(/_(.*?)_/g, "<i>$1</i>");
|
||||
text = text.replace(/~~(.*?)~~/g, "<del>$1</del>");
|
||||
text = text.replace(/\`\`\`([^]+)\`\`\`/g, "<code class=\"blockcode\">$1</code>");
|
||||
text = text.replace(/\`\`\`([^]+?)\`\`\`/g, "<code class=\"blockcode\">$1</code>");
|
||||
text = text.replace(/\`(.*?)\`/g, "<code>$1</code>");
|
||||
if (links) {
|
||||
for (var i = 0; i < links.length; i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user