Skip to content

Commit

Permalink
Merge pull request #50 from metakgp/upload-endpoint
Browse files Browse the repository at this point in the history
feat: use dashes instead of $
  • Loading branch information
rajivharlalka authored May 9, 2024
2 parents d5aeb66 + f7a9b58 commit 3e7623a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions frontend/src/utils/autofillData.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,11 @@ type Courses = {

export const sanitizeQP = (qp: IQuestionPaperFile) => {
const sanitizedFilename = qp.file.name
.replace(/[^\w\d\_]/g, "$")
.replace(/[^\w\d\_]/g, "-")
.replace(/\$+/g, "$");

const sanitizedCourseName = qp.course_name
.replace(/[^\w\d\_]/g, "$")
.replace(/[^\w\d\_]/g, "-")
.replace(/\$+/g, "$");

return {
Expand Down

0 comments on commit 3e7623a

Please sign in to comment.