(value: string)
| 20 | const plain = (value: string) => unquote(value.replace(/\s+#.*$/, '').trim()); |
| 21 | /** "[push, pull_request]" or "push"; "{}" and "[]" are empty. */ |
| 22 | const flow = (value: string): string[] => { |
| 23 | const list = /^\[(.*)\]$/.exec(value); |
| 24 | if (!list) return value && value !== '{}' ? [value] : []; |
| 25 | return list[1].split(',').map(plain).filter(Boolean); |
| 26 | }; |
| 27 | |
| 28 | function linesOf(text: string): Line[] { |
| 29 | const lines: Line[] = []; |
no outgoing calls
no test coverage detected