mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-11-19 12:14:07 +01:00
6 lines
170 B
TypeScript
6 lines
170 B
TypeScript
import type { DiagramDetector } from '../../diagram-api/detectType';
|
|
|
|
export const infoDetector: DiagramDetector = (txt) => {
|
|
return txt.match(/^\s*info/) !== null;
|
|
};
|