Creating detectors and moving out diagram specific code from the diagramAPI

This commit is contained in:
Knut Sveidqvist
2022-09-10 15:53:50 +02:00
parent 9d0901801b
commit fc9d22562b
21 changed files with 442 additions and 284 deletions

View File

@@ -0,0 +1,5 @@
import type { DiagramDetector } from '../../diagram-api/detectType';
export const c4Detector: DiagramDetector = (txt) => {
return txt.match(/^\s*C4Context|C4Container|C4Component|C4Dynamic|C4Deployment/) !== null;
};