Skip to content
Snippets Groups Projects
Commit a3d1ae7d authored by Rhys Arkins's avatar Rhys Arkins
Browse files

fix(changelog): remove trailing slash in changelog url

This seems to fix #2219. It wasn’t RST.
parent 23c3caf2
No related branches found
No related tags found
No related merge requests found
......@@ -62,9 +62,9 @@ async function getChangeLogJSON({
logger.debug('Repository URL does not match any hnown hosts');
return null;
}
const repository = pathname.slice(1);
const repository = pathname.slice(1).replace(/\/$/, '');
if (repository.split('/').length !== 2) {
logger.info('Invalid github URL found');
logger.info({ repositoryUrl }, 'Invalid github URL found');
return null;
}
if (!(releases && releases.length)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment