Fixed windows newline matching

This commit is contained in:
Klemek
2019-06-21 19:03:39 +02:00
parent 18a2866774
commit d49771023d
+1 -1
View File
@@ -11,7 +11,7 @@ module.exports = (config) => {
return cb(err);
if (config['modules']['prism']) {
const codeRegex = /```([\w-]+)\n((?:(?!```)[\s\S])*)\n```/m;
const codeRegex = /```([\w-]+)\r?\n((?:(?!```)[\s\S])*)\r?\n```/m;
let match;
while ((match = codeRegex.exec(data))) {
const lang = match[1].trim();