Skip to content

Commit

Permalink
metadata: remove file hashes from passed url
Browse files Browse the repository at this point in the history
  • Loading branch information
patrickm68 committed Mar 12, 2018
1 parent 97eb387 commit dc275bd
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions components/git/metadata.js
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,9 @@ const PR_RE = new RegExp(
'([0-9]+)(?:/(?:files)?)?$');

function handler(argv) {
// remove hashes from PR link
argv.identifier = argv.identifier.replace(/#.*$/, '');

const parsed = {};
const prid = Number.parseInt(argv.identifier);
if (!Number.isNaN(prid)) {
Expand Down

0 comments on commit dc275bd

Please sign in to comment.