Skip to content

Commit

Permalink
Update delimiter
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahidharah committed Nov 5, 2024
1 parent a69f09f commit a0b9629
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion peerprep/backend/matching-service/src/utils/redisUtils3.ts
Original file line number Diff line number Diff line change
Expand Up @@ -344,7 +344,7 @@ const createSession = async (

/* RANDOM QUESTION STARTS HERE */
const randomQuestion = await getRandomQuestionFromQuestionService(topic, difficulty);
const randomQuestionTitle = randomQuestion?.title.replace(/ /g, "-");
const randomQuestionTitle = randomQuestion?.title.replace(/ /g, "_");
sessionId += randomQuestionTitle
console.log("UPDATED Session ID:", sessionId);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ const MatchingServiceMainView: React.FC = () => {

// Check if there is a part after the delimiter
if (parts.length > 1) {
return parts[1].replace(/-/g, " "); // Return the part after "-Q"
return parts[1].replace(/_/g, " "); // Return the part after "-Q"
} else {
return "Empty Q"
}
Expand Down

0 comments on commit a0b9629

Please sign in to comment.