We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 491e2b2 commit ee3c7d1Copy full SHA for ee3c7d1
lib/links.js
@@ -45,11 +45,12 @@ class LinkParser {
45
// Do this so we can reliably get the correct url.
46
// Otherwise, the number could reference a PR or an issue.
47
getRefUrlFromOP(ref) {
48
- const as = this.OP.querySelectorAll('a.issue-link');
+ const as = Array.from(this.OP.children)
49
+ .filter(c => c.textContent.includes('Refs'))
50
+ .map(a => a.querySelector('a'));
51
const links = Array.from(as);
52
for (const link of links) {
- const text = link.textContent;
- if (text === ref) {
53
+ if (link.textContent === ref) {
54
const href = link.getAttribute('href');
55
if (href) return href;
56
}
0 commit comments