Fix regex for code block end detection in wikiparser

This commit is contained in:
pmario 2026-03-15 23:04:44 +01:00
parent dda4c7fb10
commit 0e5ca19c3c

View file

@ -25,7 +25,7 @@ exports.init = function(parser) {
};
exports.parse = function() {
var reEnd = /(\r?\n```$)/mg;
var reEnd = /(\r?\n)?```$/mg;
var languageStart = this.parser.pos + 3,
languageEnd = languageStart + this.match[1].length;
// Move past the match