mirror of
				https://github.com/TitanEmbeds/Titan.git
				synced 2025-11-03 23:37:09 +01:00 
			
		
		
		
	Fix regex for being too greedy in codeblocks
This commit is contained in:
		@@ -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++) {
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user