From 19e1eab56edc8956c119fdb660d208866f052eae Mon Sep 17 00:00:00 2001
From: Rhys Arkins <rhys@arkins.net>
Date: Fri, 6 Jul 2018 07:34:36 +0200
Subject: [PATCH] fix(pypi): replace all hyphen with underscore before
 comparing names

---
 lib/datasource/pypi.js | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/datasource/pypi.js b/lib/datasource/pypi.js
index 5d2fc98524..1da959da2d 100644
--- a/lib/datasource/pypi.js
+++ b/lib/datasource/pypi.js
@@ -8,7 +8,7 @@ module.exports = {
 };
 
 function normalizeName(input) {
-  return input.toLowerCase().replace('-', '_');
+  return input.toLowerCase().replace(/-/g, '_');
 }
 
 async function getDependency(purl, config = {}) {
-- 
GitLab