(message, regex)
| 39 | } |
| 40 | |
| 41 | static match_header(message, regex) { |
| 42 | const headers = message.headers; |
| 43 | if (!headers) return false; |
| 44 | let i = headers.length; |
| 45 | while (i--) { |
| 46 | if (regex.test(headers[i].join(" "))) { |
| 47 | return headers[i]; |
| 48 | } |
| 49 | } |
| 50 | return false; |
| 51 | } |
| 52 | |
| 53 | static getContentURL( |
| 54 | flow: Flow, |
no test coverage detected