Skip to content

Commit

Permalink
fix regex
Browse files Browse the repository at this point in the history
  • Loading branch information
oxeye-schmil committed Dec 13, 2023
1 parent 3b636cc commit 3fb88fd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions images/scm_scan.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ class Provider(Enum):


REMOTE_URL_REGEX = re.compile(
r"(git@|https?://)(?P<server_url>.*?)(:|/)(?P<organization>.*?)/(?P<name>.*?)(\.git|$)"
r"(git@|https?://)(.*?@|)(?P<server_url>.*?)(:|/)(?P<organization>.*?)/(?P<name>.*?)(\.git|$)"
)


Expand Down Expand Up @@ -84,7 +84,6 @@ def __init__(
if len(urls := list(origin.urls)) < 1:
logger.error(f"Could not get origin urls")
raise NoRemoteURLRepositoryError
logger.info(f"############# url = {urls[0]}")
match_url = REMOTE_URL_REGEX.search(urls[0])
if not match_url:
logger.error(f"Could not parse origin url")
Expand Down

0 comments on commit 3fb88fd

Please sign in to comment.