| 69 | } |
| 70 | |
| 71 | const extractVariableLine = line => { |
| 72 | const matches = VARIABLE_LINE_REGEX.exec(line) |
| 73 | if (matches != null) { |
| 74 | const [name, rawValue = 'true'] = matches.slice(1) |
| 75 | const valueWithoutComments = removeComments(rawValue) |
| 76 | const valueWithoutQuotes = removeQuotes(valueWithoutComments) |
| 77 | return [name, valueWithoutQuotes] |
| 78 | } |
| 79 | return null |
| 80 | } |
| 81 | |
| 82 | const removeComments = rawValue => { |
| 83 | const commentMatches = VARIABLE_VALUE_COMMENT_REGEX.exec(rawValue) |
no test coverage detected
searching dependent graphs…