( line: string, )
| 65 | } |
| 66 | |
| 67 | function classifyPotentialDiagramLine( |
| 68 | line: string, |
| 69 | ): 'signal' | 'support' | 'other' { |
| 70 | if (line.trim().length === 0) { |
| 71 | return 'support' |
| 72 | } |
| 73 | if ( |
| 74 | STRUCTURED_DIAGRAM_CHAR_RE.test(line) || |
| 75 | STRUCTURED_DIAGRAM_BAR_RE.test(line) |
| 76 | ) { |
| 77 | return 'signal' |
| 78 | } |
| 79 | if (/^\s{4,}\S/.test(line)) { |
| 80 | return 'support' |
| 81 | } |
| 82 | return 'other' |
| 83 | } |
| 84 | |
| 85 | function detectFenceDelimiter( |
| 86 | line: string, |
no outgoing calls
no test coverage detected