Skip to content

Commit 9fc0727

Browse files
committed
sync
1 parent abf9689 commit 9fc0727

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.github/scripts/check_image_format.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
def is_image_format(text):
55
# 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)
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)
77
lines = text.strip().split('\n')
88
for line in lines:
99
if not pattern.match(line):

0 commit comments

Comments
 (0)