(s)
| 301 | } |
| 302 | |
| 303 | function escapeSearchQuery(s) { |
| 304 | return String(s || '').replace(/"/g, '').replace(/[\r\n]+/g, ' ').trim(); |
| 305 | } |
| 306 | |
| 307 | async function findExistingIssue(repo, title, token) { |
| 308 | const titleSig = escapeSearchQuery(title).slice(0, 120); |