}
}
// This is a parameter for the current challenge
if (currentChallenge) {
const equalIndex = token.indexOf('=');
if (equalIndex > 0) {
const key = token.substring(0, equalIndex).trim();
const value = token.substring(equalIndex + 1).trim().replace(/^"|"$/g, '');
if (key && value !== undefined) {
currentChallenge.params[key] = value;
}
}
}
}
}