jmonas commited on
Commit
d146937
·
verified ·
1 Parent(s): a9470af

Update test_v2.0/validate_submission.py

Browse files
Files changed (1) hide show
  1. test_v2.0/validate_submission.py +1 -3
test_v2.0/validate_submission.py CHANGED
@@ -46,9 +46,7 @@ def _check_readme(readme_path: str, problems: List[str]):
46
  with open(readme_path, "r", encoding="utf‑8") as f:
47
  txt = f.read().strip()
48
 
49
- # Make a permissive JSON pass: swap single -> double quotes and drop any trailing
50
- # comma before the closing brace. **DO NOT** apply a regex that matches the empty
51
- # string, or the text becomes garbage. (We had a bug here earlier.)
52
  relaxed = re.sub(r"'", '"', txt)
53
  relaxed = re.sub(r",\s*}" , "}", relaxed) # trailing comma
54
 
 
46
  with open(readme_path, "r", encoding="utf‑8") as f:
47
  txt = f.read().strip()
48
 
49
+
 
 
50
  relaxed = re.sub(r"'", '"', txt)
51
  relaxed = re.sub(r",\s*}" , "}", relaxed) # trailing comma
52