Skip to content

Commit 52b9c92

Browse files
authored
revert: #1329 as it's a symptom of another issue (#1341)
1 parent 6bd66fb commit 52b9c92

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib/frontmatter.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ import yaml from 'yaml';
77
* @returns {{title: string, description: string, body: string, meta: object}}
88
*/
99
export function parseFrontmatter(content, path = '') {
10-
// Accept both LF and CRLF line endings so frontmatter is detected on Windows
11-
const FRONT_MATTER_REG = /^\s*---\r?\n\s*([\s\S]*?)\s*\r?\n---\r?\n/i;
10+
const FRONT_MATTER_REG = /^\s*---\n\s*([\s\S]*?)\s*\n---\n/i;
1211

1312
const matches = content.match(FRONT_MATTER_REG);
1413
if (!matches) {

0 commit comments

Comments
 (0)