()
| 422 | } |
| 423 | |
| 424 | var getLineIndex = function() { |
| 425 | var lineIndex; |
| 426 | message.split('\n').every(function(line, idx) { |
| 427 | if ((column = line.indexOf(ref.match)) !== -1) { |
| 428 | lineIndex = idx; |
| 429 | return false; |
| 430 | } |
| 431 | return true; |
| 432 | }); |
| 433 | return lineIndex; |
| 434 | } |
| 435 | |
| 436 | if (!ref.allowInSubject) { |
| 437 | // pull requests can appear in the subject (eg. added by GitHub) |