File tree Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Expand file tree Collapse file tree 1 file changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -95,6 +95,7 @@ def extract_name_from_link(link):
9595 # npm : www.npmjs.com/package/(package)
9696 # npm : https://www.npmjs.com/package/@(group)/(package)
9797 # pypi : https://pypi.org/project/(oss_name)
98+ # pypi2 : https://files.pythonhosted.org/packages/source/(alphabet)/(oss_name)/(oss_name)-(version).tar.gz
9899 # Maven: https://mvnrepository.com/artifact/(group)/(artifact)
99100 # pub: https://pub.dev/packages/(package)
100101 # Cocoapods: https://cocoapods.org/(package)
@@ -122,6 +123,7 @@ def extract_name_from_link(link):
122123 break
123124 elif (key == "pypi" ) or (key == "pypi2" ):
124125 oss_name = f"pypi:{ group } "
126+ oss_name = re .sub (r"[-_.]+" , "-" , oss_name ).lower ()
125127 break
126128 elif key == "maven" :
127129 artifact = match .group (2 )
You can’t perform that action at this time.
0 commit comments