(elem)
| 792 | } |
| 793 | |
| 794 | function getFullRepoFromAncestorLink(elem) { |
| 795 | let href = elem.closest('a').prop('href') |
| 796 | let fullRepo = null |
| 797 | if (href) { |
| 798 | let match = href.match(URL_REPO_PATTERN) |
| 799 | fullRepo = match && match[1] + '/' + match[2] |
| 800 | } |
| 801 | return fullRepo |
| 802 | } |
| 803 | |
| 804 | function getNextTextNode(node, context) { |
| 805 | let filter = NodeFilter.SHOW_TEXT | NodeFilter.SHOW_ELEMENT |