(value: string)
| 18 | const unquote = (value: string) => value.replace(/^(["'])(.*)\1$/, '$2'); |
| 19 | /** A plain value without its trailing comment or quotes. */ |
| 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); |