Update check-submission.py

This commit is contained in:
artmetla
2025-07-17 17:06:45 +02:00
committed by GitHub
parent 379d690d10
commit 8c53ec0b68
+2 -1
View File
@@ -121,7 +121,8 @@ for submissionId in submissionIds:
if cve != publicData["CVE"]:
error(f"The CVE on the public spreadsheet for submission `{submissionId}` is `{publicData['CVE']}` but the PR is for `{cve}`.")
flagRegex = r"kernelCTF\{(?:[^:]*:)?(?:v1:([^:]+)|v2:([^:]+):([^:]*)):\d+\}"
# Regular expression to handle kernelCTF flag without signature
flagRegex = r"kernelCTF\{(?:[^:]+:)?(?:v1:([^:]+)|v2:([^:]+):([^:]*)):\d+\}"
def flagTarget(flag):
match = checkRegex(flag, flagRegex, f"The flag (`{flag}`) is invalid")
if match.group(1):