(text: string)
| 125 | } |
| 126 | |
| 127 | function patternFacts(text: string): string[] { |
| 128 | const patterns = rows(text).map(line => line.trim()).filter(line => line && !line.startsWith('#')); |
| 129 | return patterns.length ? [words.patterns(patterns.length, patterns.slice(0, LISTED).map(quote))] : []; |
| 130 | } |
| 131 | |
| 132 | function xmlFacts(text: string): string[] { |
| 133 | const root = /<([A-Za-z_][\w:.-]*)[\s>/]/.exec(text.replace(/<\?[\s\S]*?\?>|<!--[\s\S]*?-->|<![^>]*>/g, '')); |
no test coverage detected