paclair icon indicating copy to clipboard operation
paclair copied to clipboard

bug in paclair/__init__.py

Open adf2007 opened this issue 6 years ago • 0 comments

The REGEX defined in the file "paclair/init.py" might not right. It can't match the domain when I push a image like "registray.test.com/abc/test/nginx:latest".

The value of the "domain" should be like this: 'domain': r'(?:(?P(?:[a-zA-Z0-9]+|[a-zA-Z0-9][a-zA-Z0-9-][a-zA-Z0-9])(?:(?:.(?:[a-zA-Z0-9]+|[a-zA-Z0-9][a-zA-Z0-9-][a-zA-Z0-9]))+)?(?::[0-9]+)?)/)?',

not this: 'domain': r'(?:(?P(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-][a-zA-Z0-9])(?:(?:.(?:[a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-][a-zA-Z0-9]))+)?(?::[0-9]+)?)/)?',

adf2007 avatar Jul 11 '19 11:07 adf2007