Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion lib/links.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ const FIXES_RE = /(Close[ds]?|Fix(e[ds])?|Resolve[sd]?)\s*:\s*(\S+)/mgi;
const FIX_RE = /(Close[ds]?|Fix(e[ds])?|Resolve[sd]?)\s*:\s*(\S+)/i;
const REFS_RE = /Refs?\s*:\s*(\S+)/mgi;
const REF_RE = /Refs?\s*:\s*(\S+)/i;
const PRS_RE = /PR-URL\s*:\s*(\S+)/gi;
const PR_RE = /PR-URL\s*:\s*(\S+)/i;

/**
Expand Down Expand Up @@ -80,7 +81,7 @@ export class LinkParser {

getAltPrUrl() {
const text = this.$.text();
const refs = text.match(PR_RE) || [];
const refs = text.match(PRS_RE) || [];
return this.getPRUrlsFromArray(refs);
}
}
Expand Down
Loading
Loading