We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent abf9689 commit 9fc0727Copy full SHA for 9fc0727
.github/scripts/check_image_format.py
@@ -3,7 +3,7 @@
3
4
def is_image_format(text):
5
# Regular expression pattern to match the specified image formats
6
- pattern = re.compile(r'^\s*([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\*]+:[a-zA-Z0-9\*._-]+)\s*$', re.MULTILINE)
+ pattern = re.compile(r'^\s*([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\*._-]+:[a-zA-Z0-9\*._-]+)\s*$', re.MULTILINE)
7
lines = text.strip().split('\n')
8
for line in lines:
9
if not pattern.match(line):
0 commit comments