0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-02-17 22:04:19 -05:00

chore(console): update code comments in markdown util

This commit is contained in:
Charles Zhao 2022-03-29 17:41:03 +08:00
parent 58ab342c47
commit 329966e206
No known key found for this signature in database
GPG key ID: 4858774754C92DF2

View file

@ -16,7 +16,7 @@ export const parseMarkdownWithYamlFrontmatter = <T extends Record<string, string
const metaRegExp = new RegExp(/^---[\n\r](((?!---).|[\n\r])*)[\n\r]---$/m);
// "rawYamlHeader" is the full matching string, including the --- and ---
// "metadata" is the first capturing group, which is the string between the --- and ---
// "yamlVariables" is the first capturing group, which is the string between the --- and ---
const [rawYamlHeader, yamlVariables] = metaRegExp.exec(markdown) ?? [];
if (!rawYamlHeader || !yamlVariables) {