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

fix(pypi): replace all hyphen with underscore before comparing names

parent 21995039
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ module.exports = {
};
function normalizeName(input) {
return input.toLowerCase().replace('-', '_');
return input.toLowerCase().replace(/-/g, '_');
}
async function getDependency(purl, config = {}) {
......
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