The current regex for parsing an image name doesn't allow repository names to be included (for instance, in my use case most images are prefixed with repository:5000, ie repository:5000/<image name>:tag).
I propose altering the current regex from ^([\w.\-\/]+)(?::([\w.\-]+))?(?:@([\w:]+))?$ to ^((?:[\w:]+\/)?[\w.\-\/]+)(?::([\w.\-]+))?(?:@([\w:]+))?$ which will allow repository names to optionally be included.
The current regex for parsing an image name doesn't allow repository names to be included (for instance, in my use case most images are prefixed with repository:5000, ie
repository:5000/<image name>:tag
).I propose altering the current regex from
^([\w.\-\/]+)(?::([\w.\-]+))?(?:@([\w:]+))?$
to^((?:[\w:]+\/)?[\w.\-\/]+)(?::([\w.\-]+))?(?:@([\w:]+))?$
which will allow repository names to optionally be included.I have forked this repository with the proposed alteration .