chore(curriculum): minor clean up to daily challenges (#62095)

This commit is contained in:
Tom
2025-09-09 06:47:45 -05:00
committed by GitHub
parent ec93db58fe
commit ce9f1dd99a
114 changed files with 516 additions and 446 deletions
+2 -2
View File
@@ -89,7 +89,7 @@ export function combineChallenges({
challengeFiles: pyChallengeFiles
} = pyChallenge;
if (jsTitle.replace('JavaScript ', '') !== pyTitle.replace('Python ', '')) {
if (jsTitle !== pyTitle) {
throw new Error(
`JavaScript and Python titles do not match for challenge ${challengeNumber}: "${jsTitle}" vs "${pyTitle}"`
);
@@ -112,7 +112,7 @@ export function combineChallenges({
// **DO NOT CHANGE THE ID** it's used as the challenge ID - and what gets added to completedDailyCodingChallenges[]
_id: new ObjectId(`${jsId}`),
challengeNumber,
title: jsTitle.replace(`JavaScript Challenge ${challengeNumber}: `, ''),
title: jsTitle.replace(`Challenge ${challengeNumber}: `, ''),
date,
description: removeSection(jsDescription),
javascript: {