Skip to content

Commit fcef081

Browse files
Fixing the snippet parser
1 parent 07d5009 commit fcef081

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)