Skip to content

Commit

Permalink
fix: correct hash extraction logic in getHashFromURL function (#108)
Browse files Browse the repository at this point in the history
  • Loading branch information
chimpdev authored Oct 25, 2024
1 parent 21a9912 commit ed2c5bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion client/lib/getHashFromURL.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function getHashFromURL(url, type) {
const split = url.split(`/${type}/`);

return split[1].split('.')[0];
return split[1].split('/')[1].split('.')[0];
}

module.exports = getHashFromURL;

0 comments on commit ed2c5bc

Please sign in to comment.