Skip to content

Commit fd4d41e

Browse files
Merge pull request #115 from Mathys-Gasnier/main
Fixing the snippet parser
2 parents 911a0fa + fcef081 commit fd4d41e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/snippetParser.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function raise(issue, snippet = '') {
1717
}
1818

1919
const propertyRegex = /^\s+([a-zA-Z]+):\s*(.+)/;
20-
const headerEndCodeStartRegex = /^\s+---\s+```.*\n/;
20+
const headerEndCodeStartRegex = /^\s*---\s*```.*\n/;
2121
const codeRegex = /^(.+)```/s
2222
function parseSnippet(snippetPath, text) {
2323
let cursor = 0;

0 commit comments

Comments
 (0)