(stdout: string)
| 143 | |
| 144 | /** Pulls out a URL that's from the STDOUT */ |
| 145 | const getJSONURLFromSTDOUT = (stdout: string): string | undefined => { |
| 146 | const match = stdout.match(/danger-results:\/\/*.+json/) |
| 147 | if (!match) { |
| 148 | return undefined |
| 149 | } |
| 150 | return match[0] |
| 151 | } |
| 152 | |
| 153 | /** Pulls the JSON directly out, this has proven to be less reliable */ |
| 154 | const getJSONFromSTDOUT = (stdout: string): string | undefined => { |
no outgoing calls
no test coverage detected