Skip to content

Commit

Permalink
Make sure the case of the URL parser matches the current URL (#1986)
Browse files Browse the repository at this point in the history
  • Loading branch information
rfennell authored Sep 20, 2024
1 parent e18b706 commit 1290835
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -986,7 +986,7 @@ export function processTemplate(

// add our helper to find PR
handlebars.registerHelper("lookup_a_pullrequest", function (array, url) {
var urlParts = url.split("%2F");
var urlParts = url.toLowerCase().split("%2f"); // issue #1980 fix
var prId = parseInt(urlParts[urlParts.length - 1]);
return array.find(element => element.pullRequestId === prId);
});
Expand Down

0 comments on commit 1290835

Please sign in to comment.