Fixed windows newline matching
This commit is contained in:
+1
-1
@@ -11,7 +11,7 @@ module.exports = (config) => {
|
|||||||
return cb(err);
|
return cb(err);
|
||||||
|
|
||||||
if (config['modules']['prism']) {
|
if (config['modules']['prism']) {
|
||||||
const codeRegex = /```([\w-]+)\n((?:(?!```)[\s\S])*)\n```/m;
|
const codeRegex = /```([\w-]+)\r?\n((?:(?!```)[\s\S])*)\r?\n```/m;
|
||||||
let match;
|
let match;
|
||||||
while ((match = codeRegex.exec(data))) {
|
while ((match = codeRegex.exec(data))) {
|
||||||
const lang = match[1].trim();
|
const lang = match[1].trim();
|
||||||
|
|||||||
Reference in New Issue
Block a user