chore(tools): Ignore white space in challenge id testing (#59382)

Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
Anna
2025-03-21 19:11:42 +01:00
committed by GitHub
co-authored by Oliver Eyton-Williams
parent db2adaee3d
commit 4161577bb5
+4 -2
View File
@@ -208,9 +208,11 @@ async function setup() {
}
if (process.env.FCC_CHALLENGE_ID) {
console.log(`\nChallenge Id being tested: ${process.env.FCC_CHALLENGE_ID}`);
console.log(
`\nChallenge Id being tested: ${process.env.FCC_CHALLENGE_ID.trim()}`
);
const challengeIndex = challenges.findIndex(
challenge => challenge.id === process.env.FCC_CHALLENGE_ID
challenge => challenge.id === process.env.FCC_CHALLENGE_ID.trim()
);
if (challengeIndex === -1) {
throw new Error(