Skip to content

Commit

Permalink
acbs/utils: fix package name validation
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Dec 31, 2023
1 parent 96e5cdc commit fc2989e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion acbs/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def validate_package_name(package_name: str) -> bool:
:param package_name: name of the package
:returns: True if the package name is valid
"""
return re.match(r'^[a-z0-9][a-z0-9\-+\.]+$', package_name) is not None
return re.match(r'^[a-z0-9][a-z0-9\-+\.]*$', package_name) is not None


def guess_extension_name(filename: str) -> str:
Expand Down

0 comments on commit fc2989e

Please sign in to comment.