Skip to content

Commit

Permalink
Merge pull request #3 from terrabitz/fix/fix-codeartifact-url-regex
Browse files Browse the repository at this point in the history
Update regex to account for domain name conventions
  • Loading branch information
tpetr authored Oct 20, 2023
2 parents 4b12888 + b4722e2 commit 8c55b5d
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion poetry_codeartifact_plugin/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
from poetry.utils.authenticator import Authenticator

RE_CODEARTIFACT_NETLOC = re.compile(
r"^([^-]+)-(\d+)\.d\.codeartifact\.[^.]+\.amazonaws\.com$"
r"^([a-z][a-z-]*)-(\d+)\.d\.codeartifact\.[^.]+\.amazonaws\.com$"
)


Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "poetry-codeartifact-plugin"
version = "1.0.1"
version = "1.0.2"
description = "A poetry plugin for keeping your CodeArtifact authorization token up-to-date"
authors = ["Tom Petr <[email protected]>"]
readme = "README.md"
Expand Down

0 comments on commit 8c55b5d

Please sign in to comment.