MCPcopy Create free account
hub / github.com/Justineo/github-hovercard / getFullRepoFromAncestorLink

Function getFullRepoFromAncestorLink

extensions/firefox/hovercard.js:794–802  ·  view source on GitHub ↗
(elem)

Source from the content-addressed store, hash-verified

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

Callers 1

extractElemFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected