Lines Matching refs:text
7 const detectType = (text) => {
8 text = text.replace(/^\s*%%.*\n/g, '\n');
9 console.debug('Detecting diagram type based on the text ' + text);
10 if (text.match(/^\s*sequenceDiagram/)) {
14 if (text.match(/^\s*gantt/)) {
18 if (text.match(/^\s*classDiagram/)) {
22 if (text.match(/^\s*stateDiagram/)) {
26 if (text.match(/^\s*gitGraph/)) {
29 if (text.match(/^\s*flowchart/)) {
33 if (text.match(/^\s*info/)) {
36 if (text.match(/^\s*pie/)) {