mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 07:19:41 +02:00
reformat
This commit is contained in:
@@ -3,8 +3,7 @@
|
|||||||
// Note that JS doesn't support the "\A" anchor, which means we can't use
|
// Note that JS doesn't support the "\A" anchor, which means we can't use
|
||||||
// multiline mode.
|
// multiline mode.
|
||||||
// Relevant YAML spec: https://yaml.org/spec/1.2.2/#914-explicit-documents
|
// Relevant YAML spec: https://yaml.org/spec/1.2.2/#914-explicit-documents
|
||||||
export const frontMatterRegex =
|
export const frontMatterRegex = /^\uFEFF?[\t ]*-{3}[\t ]*\r?\n([\S\s]*?)\r?\n-{3}[\t ]*(?:\r?\n|$)/;
|
||||||
/^\uFEFF?[\t ]*-{3}[\t ]*\r?\n([\S\s]*?)\r?\n[\t ]*-{3}[\t ]*(?:\r?\n|$)/;
|
|
||||||
|
|
||||||
export const directiveRegex =
|
export const directiveRegex =
|
||||||
/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;
|
/%{2}{\s*(?:(\w+)\s*:|(\w+))\s*(?:(\w+)|((?:(?!}%{2}).|\r?\n)*))?\s*(?:}%{2})?/gi;
|
||||||
|
Reference in New Issue
Block a user