mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-01-28 07:03:17 +08:00
4 lines
98 B
TypeScript
4 lines
98 B
TypeScript
|
export const detector = (txt: string) => {
|
||
|
return txt.match(/^\s*example-diagram/) !== null;
|
||
|
};
|