diff --git a/kernelctf/check-submission.py b/kernelctf/check-submission.py index 99329765..52f0795e 100755 --- a/kernelctf/check-submission.py +++ b/kernelctf/check-submission.py @@ -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):