(line: string)
| 6 | */ |
| 7 | |
| 8 | const getIndentationLength = (line: string): number => { |
| 9 | const result = /^( {2})+/.exec(line); |
| 10 | return result === null ? 0 : result[0].length; |
| 11 | }; |
| 12 | |
| 13 | const dedentLine = (line: string): string => |
| 14 | line.slice(getIndentationLength(line)); |
no test coverage detected