fix(pypi): better normalize package name

This commit is contained in:
Rhys Arkins 2018-09-11 05:09:43 +02:00
parent d822d4491b
commit b08d1aa815

View file

@ -8,7 +8,7 @@ module.exports = {
};
function normalizeName(input) {
return input.toLowerCase().replace(/-/g, '_');
return input.toLowerCase().replace(/(-|\.)/g, '_');
}
async function getPkgReleases(purl, config = {}) {