mirror of
https://github.com/logto-io/logto.git
synced 2024-12-23 20:33:16 -05:00
Merge pull request #463 from logto-io/charles-update-code-comments
chore(console): update code comments in markdown util
This commit is contained in:
commit
e297dcbb33
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue