mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-25 18:30:10 +02:00
6 lines
220 B
TypeScript
6 lines
220 B
TypeScript
import type { DiagramDetector } from '../../diagram-api/detectType';
|
|
|
|
export const c4Detector: DiagramDetector = (txt) => {
|
|
return txt.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/) !== null;
|
|
};
|