mirror of
https://github.com/freedomofpress/dangerzone.git
synced 2025-05-04 12:41:50 +02:00
fixup! Add a dangerzone-image
CLI script
This commit is contained in:
parent
3d579c8097
commit
f175739b20
1 changed files with 1 additions and 0 deletions
|
@ -39,6 +39,7 @@ def parse_image_location(input_string: str) -> Image:
|
||||||
r"(?P<namespace>[a-zA-Z0-9-]+)/"
|
r"(?P<namespace>[a-zA-Z0-9-]+)/"
|
||||||
r"(?P<image_name>[^:@]+)"
|
r"(?P<image_name>[^:@]+)"
|
||||||
r"(?::(?P<tag>[a-zA-Z0-9.-]+))?"
|
r"(?::(?P<tag>[a-zA-Z0-9.-]+))?"
|
||||||
|
r"(?:@(?P<digest>sha256:[a-zA-Z0-9]+))?"
|
||||||
r"$"
|
r"$"
|
||||||
)
|
)
|
||||||
match = re.match(pattern, input_string)
|
match = re.match(pattern, input_string)
|
||||||
|
|
Loading…
Reference in a new issue