mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-17 22:39:56 +02:00
6 lines
189 B
TypeScript
6 lines
189 B
TypeScript
import type { DiagramDetector } from '../../diagram-api/types';
|
|
|
|
export const requirementDetector: DiagramDetector = (txt) => {
|
|
return txt.match(/^\s*requirement(Diagram)?/) !== null;
|
|
};
|