(input)
| 85120 | var removeDoubleNewlines = (input) => { |
| 85121 | const pattern = /\\n\\n/g; |
| 85122 | if (pattern.test(input)) { |
| 85123 | const newInput = input.replace(pattern, ""); |
| 85124 | return removeDoubleNewlines(newInput); |
| 85125 | } |
| 85126 | return input; |
| 85127 | }; |
| 85128 | var getJSONBlock = (input) => { |
| 85129 | const jsonIndex = input.search("```json"); |
| 85130 | if (jsonIndex > -1) { |
| 85131 | input = input.slice(jsonIndex + 8); |
| 85132 | const endJsonIndex = input.search("```"); |
| 85133 | input = input.slice(0, endJsonIndex); |
no test coverage detected
searching dependent graphs…