We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6da2118 commit 8eb91acCopy full SHA for 8eb91ac
src/lib/services/contents/file/parse.js
@@ -102,7 +102,7 @@ export const parseEntryFile = async ({
102
const sd = escapeRegExp(startDelimiter);
103
const ed = escapeRegExp(endDelimiter);
104
// Front matter matching: allow an empty head
105
- const regex = new RegExp(`^${sd}$\\n(?:(?<head>.*?)$\\n)?${ed}$(?:\\n(?<body>.+))?`, 'ms');
+ const regex = new RegExp(`^${sd}\\n(?:(?<head>.*?)\\n)?${ed}$(?:\\n(?<body>.+))?`, 'ms');
106
const { head, body } = text.match(regex)?.groups ?? {};
107
108
if (!head && !body) {
0 commit comments